summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inode.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-07-25 07:40:59 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-07-29 07:46:11 -0700
commitfff04f90c1b9f91b9c513a89702a4b9ffe5dc1c5 (patch)
tree93d2a63cedd9e181849cf75feda52eb5f1f2032f /fs/f2fs/inode.c
parent39efac41fbe44343cac29472320a1d502fcff66b (diff)
downloadblackbird-op-linux-fff04f90c1b9f91b9c513a89702a4b9ffe5dc1c5.tar.gz
blackbird-op-linux-fff04f90c1b9f91b9c513a89702a4b9ffe5dc1c5.zip
f2fs: add info of appended or updated data writes
This patch introduces a inode number list in which represents inodes having appended data writes or updated data writes after last checkpoint. This will be used at fsync to determine whether the recovery information should be written or not. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r--fs/f2fs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c
index cafba3c9f8d8..0e69aa90238d 100644
--- a/fs/f2fs/inode.c
+++ b/fs/f2fs/inode.c
@@ -296,6 +296,10 @@ void f2fs_evict_inode(struct inode *inode)
sb_end_intwrite(inode->i_sb);
no_delete:
invalidate_mapping_pages(NODE_MAPPING(sbi), inode->i_ino, inode->i_ino);
+ if (is_inode_flag_set(F2FS_I(inode), FI_APPEND_WRITE))
+ add_dirty_inode(sbi, inode->i_ino, APPEND_INO);
+ if (is_inode_flag_set(F2FS_I(inode), FI_UPDATE_WRITE))
+ add_dirty_inode(sbi, inode->i_ino, UPDATE_INO);
out_clear:
clear_inode(inode);
}
OpenPOWER on IntegriCloud