fuse: Trust kernel i_size only
Make fuse think that when writeback is on the inode's i_size is always up-to-date and not update it with the value received from the userspace. This is done because the page cache code may update i_size without letting the FS know. This assumption implies fixing the previously introduced short-read helper -- when a short read occurs the 'hole' is filled with zeroes. fuse_file_fallocate() is also fixed because now we should keep i_size up to date, so it must be updated if FUSE_FALLOCATE request succeeded. Change-Id: I79691ed5c5da732e7f5a4683433a24b30abce303 Signed-off-by:Maxim V. Patlasov <MPatlasov@parallels.com> Signed-off-by:
Miklos Szeredi <mszeredi@suse.cz> Git-commit: 8373200b124d03de7fa2e99be56de8642e604e9e Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git Signed-off-by:
Nikhilesh Reddy <reddyn@codeaurora.org>
Loading
Please register or sign in to comment