]> git.baikalelectronics.ru Git - kernel.git/commit
cachefiles: perform test on s_blocksize when opening cache file.
authorNeilBrown <neilb@suse.de>
Wed, 4 Nov 2015 15:20:34 +0000 (15:20 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Nov 2015 07:08:17 +0000 (02:08 -0500)
commitf940f720bd87b9c7a40d4e164e3af915f371a2eb
treeef88b895c4e6b8bef8efd28d9ea852cb63814dc7
parentd1db0ebf4bb1ab0915a9c828e629d7e6e623c7e7
cachefiles: perform test on s_blocksize when opening cache file.

cachefiles requires that s_blocksize in the cache is not greater than
PAGE_SIZE, and performs the check every time a block is accessed.

Move the test to the place where the file is "opened", where other
file-validity tests are performed.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cachefiles/namei.c
fs/cachefiles/rdwr.c