Commit 748f4ef4 authored by Zhao Lei's avatar Zhao Lei Committed by Chris Mason

btrfs: Remove unnecessary ClearPageUptodate for raid56

PageUptodate flag already initialized to 0 for new page,
no need to set it again.
Signed-off-by: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 915e2290
...@@ -1032,7 +1032,6 @@ static int alloc_rbio_pages(struct btrfs_raid_bio *rbio) ...@@ -1032,7 +1032,6 @@ static int alloc_rbio_pages(struct btrfs_raid_bio *rbio)
if (!page) if (!page)
return -ENOMEM; return -ENOMEM;
rbio->stripe_pages[i] = page; rbio->stripe_pages[i] = page;
ClearPageUptodate(page);
} }
return 0; return 0;
} }
...@@ -2273,7 +2272,6 @@ static int alloc_rbio_essential_pages(struct btrfs_raid_bio *rbio) ...@@ -2273,7 +2272,6 @@ static int alloc_rbio_essential_pages(struct btrfs_raid_bio *rbio)
if (!page) if (!page)
return -ENOMEM; return -ENOMEM;
rbio->stripe_pages[index] = page; rbio->stripe_pages[index] = page;
ClearPageUptodate(page);
} }
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment