Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412764 > unrolled thread
| Started by | Jaegeuk Kim <jaegeuk@kernel.org> |
|---|---|
| First post | 2016-06-03 06:00 +0200 |
| Last post | 2016-06-03 06:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 4/8] f2fs: skip roll_forward recovery after umount Jaegeuk Kim <jaegeuk@kernel.org> - 2016-06-03 06:00 +0200
| From | Jaegeuk Kim <jaegeuk@kernel.org> |
|---|---|
| Date | 2016-06-03 06:00 +0200 |
| Subject | [PATCH 4/8] f2fs: skip roll_forward recovery after umount |
| Message-ID | <rFOr7-6ts-5@gated-at.bofh.it> |
If f2fs was umounted successfully, we don't need to go into roll_forward.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fs/f2fs/recovery.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index b568b28..841bddc 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -579,6 +579,9 @@ int recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only)
int ret = 0;
bool need_writecp = false;
+ if (is_set_ckpt_flags(sbi->ckpt, CP_UMOUNT_FLAG))
+ return 0;
+
fsync_entry_slab = f2fs_kmem_cache_create("f2fs_fsync_inode_entry",
sizeof(struct fsync_inode_entry));
if (!fsync_entry_slab)
--
2.6.3
Back to top | Article view | linux.kernel
csiph-web