diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-11 12:45:39 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-20 08:59:42 -0700 |
commit | 315df8398e36360c0be62e6fdd3f2708fc3a2567 (patch) | |
tree | d2e5a7bc57291777d558bd6083fbdad2f26e8565 /fs/f2fs/recovery.c | |
parent | 4c278394b0feb7aadc538be12ab0474b106a7255 (diff) | |
download | op-kernel-dev-315df8398e36360c0be62e6fdd3f2708fc3a2567.zip op-kernel-dev-315df8398e36360c0be62e6fdd3f2708fc3a2567.tar.gz |
f2fs: do not write any node pages related to orphan inodes
We should not write node pages when deleting orphan inodes.
In order to do that, we can eaisly set POR_DOING flag earlier before entering
orphan inode routine.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r-- | fs/f2fs/recovery.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index d2ef0c9..faec2ca 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -545,14 +545,12 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) INIT_LIST_HEAD(&inode_list); - /* step #1: find fsynced inode numbers */ - set_sbi_flag(sbi, SBI_POR_DOING); - /* prevent checkpoint */ mutex_lock(&sbi->cp_mutex); blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); + /* step #1: find fsynced inode numbers */ err = find_fsync_dnodes(sbi, &inode_list); if (err) goto out; |