diff options
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index de55c088948f..ce0d5ec8e770 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -585,7 +585,7 @@ static bool f2fs_update_extent_tree(struct inode *inode, pgoff_t fofs, __detach_extent_node(sbi, et, en); /* 2. if extent can be split more, split and insert the left part */ - if (dei.len > 1) { + if (dei.len > F2FS_MIN_EXTENT_LEN) { /* insert left part of split extent into cache */ if (fofs - dei.fofs >= F2FS_MIN_EXTENT_LEN) { set_extent_info(&ei, dei.fofs, dei.blk, |