diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2016-01-12 04:22:13 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-01-20 10:22:17 -0500 |
commit | 748f4ef4c6708e733da077a1980923b9d19db78a (patch) | |
tree | 8578804c8c108ebab60398b81b854ccd1684f32b /fs | |
parent | 915e22903cb34619c1a1462ca4248add96fa41d7 (diff) |
btrfs: Remove unnecessary ClearPageUptodate for raid56
PageUptodate flag already initialized to 0 for new page,
no need to set it again.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/raid56.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index 719dbc0d3080..2bc34e91b62e 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c | |||
@@ -1032,7 +1032,6 @@ static int alloc_rbio_pages(struct btrfs_raid_bio *rbio) | |||
1032 | if (!page) | 1032 | if (!page) |
1033 | return -ENOMEM; | 1033 | return -ENOMEM; |
1034 | rbio->stripe_pages[i] = page; | 1034 | rbio->stripe_pages[i] = page; |
1035 | ClearPageUptodate(page); | ||
1036 | } | 1035 | } |
1037 | return 0; | 1036 | return 0; |
1038 | } | 1037 | } |
@@ -2273,7 +2272,6 @@ static int alloc_rbio_essential_pages(struct btrfs_raid_bio *rbio) | |||
2273 | if (!page) | 2272 | if (!page) |
2274 | return -ENOMEM; | 2273 | return -ENOMEM; |
2275 | rbio->stripe_pages[index] = page; | 2274 | rbio->stripe_pages[index] = page; |
2276 | ClearPageUptodate(page); | ||
2277 | } | 2275 | } |
2278 | } | 2276 | } |
2279 | return 0; | 2277 | return 0; |