summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-18 02:46:40 +0100
committerTheodore Ts'o <tytso@mit.edu>2014-02-18 02:46:40 +0100
commitdf3a98b0865467ae8033c55ebb514debd69b4e59 (patch)
tree2f045b6427b127ddfd2d78a34d501aa5c286a4d3
parentext4: clean up error handling in swap_inode_boot_loader() (diff)
downloadlinux-df3a98b0865467ae8033c55ebb514debd69b4e59.tar.xz
linux-df3a98b0865467ae8033c55ebb514debd69b4e59.zip
ext4: remove an unneeded check in mext_page_mkuptodate()
"err" is zero here, there is no need to check again. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--fs/ext4/move_extent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c
index 773b503bd18c..f39a88abe32c 100644
--- a/fs/ext4/move_extent.c
+++ b/fs/ext4/move_extent.c
@@ -861,8 +861,7 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to)
}
if (!buffer_mapped(bh)) {
zero_user(page, block_start, blocksize);
- if (!err)
- set_buffer_uptodate(bh);
+ set_buffer_uptodate(bh);
continue;
}
}