]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/libfs.c
libfs: Fix shift bug in generic_check_addressable()
authorJoel Becker <joel.becker@oracle.com>
Mon, 16 Aug 2010 19:10:17 +0000 (12:10 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 10 Sep 2010 15:42:48 +0000 (08:42 -0700)
commita33f13efe05192e7a805018a2ce2b2afddd04057
treeeb2f8404c82f1464086c4bd3ddef82dcc1db71c8
parent3bdb8efd94a73bb137e3315cd831cbc874052b4b
libfs: Fix shift bug in generic_check_addressable()

generic_check_addressable() erroneously shifts pages down by a block
factor when it should be shifting up.  To prevent overflow, we shift
blocks down to pages.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/libfs.c