From: Pavel Emelyanov Date: Thu, 10 Oct 2013 13:10:46 +0000 (+0400) Subject: fuse: Trust kernel i_size only X-Git-Tag: v3.15-rc1~94^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8373200b124d03de7fa2e99be56de8642e604e9e;p=pandora-kernel.git 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. Signed-off-by: Maxim V. Patlasov Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed