From: Wang Shilong Date: Fri, 3 Jan 2014 10:22:57 +0000 (+0800) Subject: Btrfs: only fua the first superblock when writting supers X-Git-Tag: upstream/snapshot3+hdmi~3409^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8117c26b24098496b6011aabe84e43e0189a506;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Btrfs: only fua the first superblock when writting supers We only intent to fua the first superblock in every device from comments, fix it. Signed-off-by: Wang Shilong Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 0400a26..9850a51 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3133,7 +3133,10 @@ static int write_dev_supers(struct btrfs_device *device, * we fua the first super. The others we allow * to go down lazy. */ - ret = btrfsic_submit_bh(WRITE_FUA, bh); + if (i == 0) + ret = btrfsic_submit_bh(WRITE_FUA, bh); + else + ret = btrfsic_submit_bh(WRITE_SYNC, bh); if (ret) errors++; }