提交 f27792f5 编写于 作者: J Jan Kara

udf: Remove useless check in udf_adinicb_write_begin()

As Al properly points out, len is guaranteed to be smaller than
PAGE_SIZE when we reach udf_adinicb_write_begin() as otherwise we would
have converted the file to the normal format.
Reported-by: NAl Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 3cd0126d
......@@ -94,7 +94,7 @@ static int udf_adinicb_write_begin(struct file *file,
return -ENOMEM;
*pagep = page;
if (!PageUptodate(page) && len != PAGE_SIZE)
if (!PageUptodate(page))
__udf_adinicb_readpage(page);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册