diff options
author | Yunlong Song <yunlong.song@huawei.com> | 2018-04-03 19:42:41 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-31 11:31:44 -0700 |
commit | 8045249829c9db0e664b3fa2f9c9b004089a6156 (patch) | |
tree | 3186347610211e0e2f026f47f8419aa8d6fbad36 /fs/f2fs/inline.c | |
parent | 59c844088b19c545efcc4ed97f95c1e1100e12ca (diff) | |
download | linux-stable-8045249829c9db0e664b3fa2f9c9b004089a6156.tar.gz linux-stable-8045249829c9db0e664b3fa2f9c9b004089a6156.tar.bz2 linux-stable-8045249829c9db0e664b3fa2f9c9b004089a6156.zip |
f2fs: remove unmatched zero_user_segment when convert inline dentry
Since the layout of regular dentry block is different from inline dentry
block, zero_user_segment starting from MAX_INLINE_DATA(dir) is not
correct for regular dentry block, besides, bitmap is already copied and
used, so there is no necessary to zero page at all, so just remove the
zero_user_segment is OK.
Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
-rw-r--r-- | fs/f2fs/inline.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index bc571942885e..1eaa2049eafa 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -368,7 +368,6 @@ static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage, goto out; f2fs_wait_on_page_writeback(page, DATA, true); - zero_user_segment(page, MAX_INLINE_DATA(dir), PAGE_SIZE); dentry_blk = page_address(page); |