提交 ec4e7af4 编写于 作者: J Jaegeuk Kim

f2fs: skip if inline_data was converted already

This patch checks inline_data one more time under the inode page lock whether
its inline_data is converted or not.
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 202095a7
......@@ -68,7 +68,7 @@ int f2fs_read_inline_data(struct inode *inode, struct page *page)
static int __f2fs_convert_inline_data(struct inode *inode, struct page *page)
{
int err;
int err = 0;
struct page *ipage;
struct dnode_of_data dn;
void *src_addr, *dst_addr;
......@@ -86,6 +86,10 @@ static int __f2fs_convert_inline_data(struct inode *inode, struct page *page)
goto out;
}
/* someone else converted inline_data already */
if (!f2fs_has_inline_data(inode))
goto out;
/*
* i_addr[0] is not used for inline data,
* so reserving new block will not destroy inline data
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册