提交 df3a98b0 编写于 作者: D Dan Carpenter 提交者: Theodore Ts'o

ext4: remove an unneeded check in mext_page_mkuptodate()

"err" is zero here, there is no need to check again.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
上级 d8558a29
...@@ -861,8 +861,7 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to) ...@@ -861,8 +861,7 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to)
} }
if (!buffer_mapped(bh)) { if (!buffer_mapped(bh)) {
zero_user(page, block_start, blocksize); zero_user(page, block_start, blocksize);
if (!err) set_buffer_uptodate(bh);
set_buffer_uptodate(bh);
continue; continue;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册