summaryrefslogtreecommitdiffstats
path: root/fs
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
parentd8558a297878f1a7af995f6801983783e1487208 (diff)
downloadop-kernel-dev-df3a98b0865467ae8033c55ebb514debd69b4e59.zip
op-kernel-dev-df3a98b0865467ae8033c55ebb514debd69b4e59.tar.gz
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')
-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 773b503..f39a88a 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;
}
}
OpenPOWER on IntegriCloud