alistair23-linux/fs/f2fs
Chao Yu 8aa6f1c5bd 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 <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2014-05-07 10:21:58 +09:00
..
acl.c f2fs: pass flags field to setxattr functions 2014-05-07 10:21:56 +09:00
acl.h f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00
checkpoint.c f2fs: add static to get_max_meta_blks 2014-05-07 10:21:55 +09:00
data.c f2fs: introduce help macro ADDRS_PER_PAGE() 2014-05-07 10:21:56 +09:00
debug.c f2fs: remove unnecessary threshold 2014-03-20 22:10:09 +09:00
dir.c f2fs: readahead multi pages of directory for performance 2014-05-07 10:21:57 +09:00
f2fs.h f2fs: fix to truncate inline data in inode page when setattr 2014-05-07 10:21:58 +09:00
file.c f2fs: fix to truncate inline data in inode page when setattr 2014-05-07 10:21:58 +09:00
gc.c f2fs: remove the unused ctor argument of f2fs_kmem_cache_create() 2014-03-10 18:45:14 +09:00
gc.h f2fs: add a sysfs entry to control max_victim_search 2014-01-08 13:45:08 +09:00
hash.c f2fs: unify string length declarations and usage 2012-12-28 11:27:53 +09:00
inline.c f2fs: fix to truncate inline data in inode page when setattr 2014-05-07 10:21:58 +09:00
inode.c f2fs: atomically set inode->i_flags in f2fs_set_inode_flags() 2014-05-07 10:21:54 +09:00
Kconfig f2fs: introduce CONFIG_F2FS_CHECK_FS for BUG_ON control 2013-10-29 15:43:01 +09:00
Makefile f2fs: key functions to handle inline data 2013-12-26 20:40:09 +09:00
namei.c f2fs: fix wrong statistics of inline data 2014-04-07 12:40:58 +09:00
node.c f2fs: adjust free mem size to flush dentry blocks 2014-05-07 10:21:55 +09:00
node.h f2fs: adjust free mem size to flush dentry blocks 2014-05-07 10:21:55 +09:00
recovery.c f2fs: set errno when f2fs_iget failed in recover_dentry 2014-05-07 10:21:57 +09:00
segment.c f2fs: introduce help function {create,destroy}_flush_cmd_control 2014-05-07 10:21:57 +09:00
segment.h f2fs: change reclaim rate in percentage 2014-03-20 22:10:10 +09:00
super.c f2fs: introduce help function {create,destroy}_flush_cmd_control 2014-05-07 10:21:57 +09:00
xattr.c f2fs: return errors right after checking them 2014-05-07 10:21:56 +09:00
xattr.h f2fs: pass flags field to setxattr functions 2014-05-07 10:21:56 +09:00