Fix bug in atomically-set-inode-flags
[ext4-patch-queue.git] / remove-an-unneeded-check-in-mext_page_mkuptodate
blobadee6b72762f661401a395deb26f9ebf1f5e6f46
1 ext4: remove an unneeded check in mext_page_mkuptodate()
3 From: Dan Carpenter <dan.carpenter@oracle.com>
5 "err" is zero here, there is no need to check again.
7 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
8 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
10 diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c
11 index 773b503bd18c..f39a88abe32c 100644
12 --- a/fs/ext4/move_extent.c
13 +++ b/fs/ext4/move_extent.c
14 @@ -861,8 +861,7 @@ mext_page_mkuptodate(struct page *page, unsigned from, unsigned to)
15                         }
16                         if (!buffer_mapped(bh)) {
17                                 zero_user(page, block_start, blocksize);
18 -                               if (!err)
19 -                                       set_buffer_uptodate(bh);
20 +                               set_buffer_uptodate(bh);
21                                 continue;
22                         }
23                 }