Lines Matching defs:max_mirrors
3748 * Write @max_mirrors copies of the superblock, where 0 means default that fit
3749 * the expected device size at commit time. Note that max_mirrors must be
3755 struct btrfs_super_block *sb, int max_mirrors)
3765 if (max_mirrors == 0)
3766 max_mirrors = BTRFS_SUPER_MIRROR_MAX;
3770 for (i = 0; i < max_mirrors; i++) {
3845 * @max_mirrors same for write and wait phases.
3850 static int wait_dev_supers(struct btrfs_device *device, int max_mirrors)
3858 if (max_mirrors == 0)
3859 max_mirrors = BTRFS_SUPER_MIRROR_MAX;
3861 for (i = 0; i < max_mirrors; i++) {
4058 int write_all_supers(struct btrfs_fs_info *fs_info, int max_mirrors)
4073 * max_mirrors == 0 indicates we're from commit_transaction,
4077 if (max_mirrors == 0)
4132 ret = write_dev_supers(dev, sb, max_mirrors);
4156 ret = wait_dev_supers(dev, max_mirrors);