]> git.hungrycats.org Git - linux/commitdiff
btrfs: Remove unnecessary ClearPageUptodate for raid56
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 12 Jan 2016 09:22:13 +0000 (17:22 +0800)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sun, 24 Jan 2016 04:35:29 +0000 (23:35 -0500)
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>
(cherry picked from commit 748f4ef4c6708e733da077a1980923b9d19db78a)

fs/btrfs/raid56.c

index 8c1d32afe7d25e3e8cee5b7e7665bf8633aa9dfa..99fd734201d8e5c48020fcccfb7f5c9634ea80fd 100644 (file)
@@ -1020,7 +1020,6 @@ static int alloc_rbio_pages(struct btrfs_raid_bio *rbio)
                if (!page)
                        return -ENOMEM;
                rbio->stripe_pages[i] = page;
-               ClearPageUptodate(page);
        }
        return 0;
 }
@@ -2259,7 +2258,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;