btrfs: Remove unnecessary ClearPageUptodate for raid56
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 12 Jan 2016 09:22:13 +0000 (17:22 +0800)
committerChris Mason <clm@fb.com>
Wed, 20 Jan 2016 15:22:17 +0000 (07:22 -0800)
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>
fs/btrfs/raid56.c

index 719dbc0..2bc34e9 100644 (file)
@@ -1032,7 +1032,6 @@ static int alloc_rbio_pages(struct btrfs_raid_bio *rbio)
                if (!page)
                        return -ENOMEM;
                rbio->stripe_pages[i] = page;
-               ClearPageUptodate(page);
        }
        return 0;
 }
@@ -2273,7 +2272,6 @@ static int alloc_rbio_essential_pages(struct btrfs_raid_bio *rbio)
                        if (!page)
                                return -ENOMEM;
                        rbio->stripe_pages[index] = page;
-                       ClearPageUptodate(page);
                }
        }
        return 0;