[PATCH 1/3] cachefiles: perform test on s_blocksize when opening cache file.

2015-04-19 Thread NeilBrown
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 --- fs/cachefiles/namei.c |

[PATCH 1/3] cachefiles: perform test on s_blocksize when opening cache file.

2015-04-19 Thread NeilBrown
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 ne...@suse.de ---