Lines Matching refs:max_mirrors
3731 * Write @max_mirrors copies of the superblock, where 0 means default that fit
3732 * the expected device size at commit time. Note that max_mirrors must be
3738 struct btrfs_super_block *sb, int max_mirrors)
3748 if (max_mirrors == 0)
3749 max_mirrors = BTRFS_SUPER_MIRROR_MAX;
3753 for (i = 0; i < max_mirrors; i++) {
3826 * @max_mirrors same for write and wait phases.
3831 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors)
3839 if (max_mirrors == 0)
3840 max_mirrors = BTRFS_SUPER_MIRROR_MAX;
3842 for (i = 0; i < max_mirrors; i++) {
4022 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors)
4037 * max_mirrors == 0 indicates we're from commit_transaction,
4041 if (max_mirrors == 0)
4096 ret = write_dev_supers(dev, sb, max_mirrors);
4120 ret = wait_dev_supers(dev, max_mirrors);