From: Chao Yu Date: Tue, 29 Apr 2014 01:03:03 +0000 (+0800) Subject: f2fs: fix to truncate inline data in inode page when setattr X-Git-Tag: omap-for-v3.16/fixes-against-rc1~73^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aa6f1c5bd7043734fff1961a4795da9cc5d0f50;p=pandora-kernel.git f2fs: fix to truncate inline data in inode page when setattr Previous we do not truncate inline data in inode page when setattr, so following case could still read the inline data which has already truncated: 1.write inline data 2.ftruncate size to 0 3.ftruncate size to max inline data size 4.read from offset 0 This patch introduces truncate_inline_data() to fix this problem. change log from v1: o fix a bug and do not truncate first page data after truncate inline data. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed