diff options
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 4179c7b971fc..837e6bcad5ce 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c | |||
@@ -981,7 +981,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) | |||
981 | * This avoids to conduct wrong roll-forward operations and uses | 981 | * This avoids to conduct wrong roll-forward operations and uses |
982 | * metapages, so should be called prior to sync_meta_pages below. | 982 | * metapages, so should be called prior to sync_meta_pages below. |
983 | */ | 983 | */ |
984 | if (discard_next_dnode(sbi, discard_blk)) | 984 | if (!test_opt(sbi, LFS) && discard_next_dnode(sbi, discard_blk)) |
985 | invalidate = true; | 985 | invalidate = true; |
986 | 986 | ||
987 | /* Flush all the NAT/SIT pages */ | 987 | /* Flush all the NAT/SIT pages */ |