aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-11-16 15:09:48 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:30 +0200
commite718c5c0fe64ec05e10426ded2df42544a46d549 (patch)
treeb054f821972f82e19672dee9f8b93845c93d9ab9 /fs/f2fs/recovery.c
parent611d54943c680fa49969228e3350a87aab38e0e8 (diff)
f2fs: do not recover i_size if it's valid
If i_size is already valid during roll_forward recovery, we should not update it according to the block alignment. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r--fs/f2fs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 0e4e12d0a..936c0166d 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -425,7 +425,7 @@ retry_dn:
continue;
}
- if ((start + 1) << PAGE_SHIFT > i_size_read(inode))
+ if (i_size_read(inode) <= (start << PAGE_SHIFT))
f2fs_i_size_write(inode, (start + 1) << PAGE_SHIFT);
/*