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 719dbc0d30808ba338da435b71ccf0b703284e33..2bc34e91b62eb86240cdbff12e705db3273e6bb9 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;