浏览代码

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>
Yunlong Song 7 年之前
父节点
当前提交
8045249829
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      fs/f2fs/inline.c

+ 0 - 1
fs/f2fs/inline.c

@@ -368,7 +368,6 @@ static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage,
 		goto out;
 		goto out;
 
 
 	f2fs_wait_on_page_writeback(page, DATA, true);
 	f2fs_wait_on_page_writeback(page, DATA, true);
-	zero_user_segment(page, MAX_INLINE_DATA(dir), PAGE_SIZE);
 
 
 	dentry_blk = page_address(page);
 	dentry_blk = page_address(page);