Lines Matching defs:max_mirrors
3591 * Write @max_mirrors copies of the superblock, where 0 means default that fit
3592 * the expected device size at commit time. Note that max_mirrors must be
3598 struct btrfs_super_block *sb, int max_mirrors)
3607 if (max_mirrors == 0)
3608 max_mirrors = BTRFS_SUPER_MIRROR_MAX;
3612 for (i = 0; i < max_mirrors; i++) {
3673 * @max_mirrors same for write and wait phases.
3678 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors)
3685 if (max_mirrors == 0)
3686 max_mirrors = BTRFS_SUPER_MIRROR_MAX;
3688 for (i = 0; i < max_mirrors; i++) {
3884 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors)
3899 * max_mirrors == 0 indicates we're from commit_transaction,
3903 if (max_mirrors == 0)
3958 ret = write_dev_supers(dev, sb, max_mirrors);
3982 ret = wait_dev_supers(dev, max_mirrors);