summaryrefslogtreecommitdiffstats
path: root/fs/ext4/move_extent.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-17 20:46:40 -0500
committerTheodore Ts'o <tytso@mit.edu>2014-02-17 20:46:40 -0500
commitdf3a98b0865467ae8033c55ebb514debd69b4e59 (patch)
tree2f045b6427b127ddfd2d78a34d501aa5c286a4d3 /fs/ext4/move_extent.c
parentd8558a297878f1a7af995f6801983783e1487208 (diff)
downloadlinux-df3a98b0865467ae8033c55ebb514debd69b4e59.tar.bz2
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>
Diffstat (limited to 'fs/ext4/move_extent.c')
-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;
}
}