diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-02-17 20:46:40 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-02-17 20:46:40 -0500 |
commit | df3a98b0865467ae8033c55ebb514debd69b4e59 (patch) | |
tree | 2f045b6427b127ddfd2d78a34d501aa5c286a4d3 /fs | |
parent | d8558a297878f1a7af995f6801983783e1487208 (diff) | |
download | lwn-df3a98b0865467ae8033c55ebb514debd69b4e59.tar.gz lwn-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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/move_extent.c | 3 |
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; } } |