[f2fs-dev][PATCH 3/3 v2] f2fs: fix to truncate inline data in inode page when setattr

2014-04-28 Thread Chao Yu
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()

[f2fs-dev][PATCH 3/3 v2] f2fs: fix to truncate inline data in inode page when setattr

2014-04-28 Thread Chao Yu
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()