Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8117c26 authored by Wang Shilong's avatar Wang Shilong Committed by Chris Mason
Browse files

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: default avatarWang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 17504584
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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.
		 */
		if (i == 0)
			ret = btrfsic_submit_bh(WRITE_FUA, bh);
		else
			ret = btrfsic_submit_bh(WRITE_SYNC, bh);
		if (ret)
			errors++;
	}