From: Chao Yu Date: Mon, 15 Sep 2014 10:02:09 +0000 (+0800) Subject: f2fs: fix to truncate blocks past EOF in ->setattr X-Git-Tag: fixes-for-v3.18-merge-window~8^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09db6a2ef8d9ca6da71b5de56097e8b769bef299;p=pandora-kernel.git f2fs: fix to truncate blocks past EOF in ->setattr By using FALLOC_FL_KEEP_SIZE in ->fallocate of f2fs, we can fallocate block past EOF without changing i_size of inode. These blocks past EOF will not be truncated in ->setattr as we truncate them only when change the file size. We should give a chance to truncate blocks out of filesize in setattr(). Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed