]> git.baikalelectronics.ru Git - kernel.git/commit
exofs: readpage_strip: Add a BUG_ON to check for PageLocked(page)
authorKautuk Consul <consul.kautuk@gmail.com>
Mon, 20 Feb 2012 08:46:12 +0000 (03:46 -0500)
committerBoaz Harrosh <bharrosh@panasas.com>
Thu, 2 Aug 2012 11:52:12 +0000 (14:52 +0300)
commit5fd351efa398b2a548d9004d54d5057f0c31fc47
tree4279e079a86060037f6f99c4a0fc1e20825269f9
parenta167a477fbd2d59266b24ac1c8f7dd25865b7dd8
exofs: readpage_strip: Add a BUG_ON to check for PageLocked(page)

readpage_strip can be called from several code paths all of which
require that the page be locked before any operations are carried
out.

Since we export the exofs_readpage callback to the VFS, add a
BUG_ON to check for PageLocked(page) to make sure that this
understanding is never compromised.

Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/inode.c