Lines Matching defs:super

54 #include "super.h"
1605 * in the super block. If they don't match we pitch it.
1625 * copy all the root pointers into the super backup array.
1722 struct btrfs_super_block *super = fs_info->super_copy;
1735 root_backup = super->super_roots + backup_index;
1737 btrfs_set_super_generation(super,
1739 btrfs_set_super_root(super, btrfs_backup_tree_root(root_backup));
1740 btrfs_set_super_root_level(super,
1742 btrfs_set_super_bytes_used(super, btrfs_backup_bytes_used(root_backup));
1748 btrfs_set_super_total_bytes(super, btrfs_backup_total_bytes(root_backup));
1749 btrfs_set_super_num_devices(super, btrfs_backup_num_devices(root_backup));
2299 * Real super block validation
2300 * NOTE: super csum type and incompat features will not be checked here.
2302 * @sb: super block to check
2303 * @mirror_num: the super block number to check its bytenr:
2320 btrfs_err(fs_info, "unrecognized or unsupported super flag: %llu",
2452 btrfs_err(fs_info, "super offset mismatch %llu != %u",
2496 * Validation of super block at mount time.
2506 * Validation of super block at write time.
2536 "super block corruption detected before writing it to disk");
3154 /* This can be called by remount, we need to protect the super block. */
3201 * Read super block and check the signature bytes only
3282 * In the long term, we'll store the compression type in the super
3668 struct btrfs_super_block *super;
3701 super = page_address(page);
3702 if (btrfs_super_magic(super) != BTRFS_MAGIC) {
3703 btrfs_release_disk_super(super);
3707 if (btrfs_super_bytenr(super) != bytenr_orig) {
3708 btrfs_release_disk_super(super);
3712 return super;
3718 struct btrfs_super_block *super, *latest = NULL;
3728 super = btrfs_read_dev_one_super(bdev, i, false);
3729 if (IS_ERR(super))
3732 if (!latest || btrfs_super_generation(super) > transid) {
3734 btrfs_release_disk_super(super);
3736 latest = super;
3737 transid = btrfs_super_generation(super);
3741 return super;
3781 "couldn't get super block location for mirror %d",
3800 "couldn't get super block page for bytenr %llu",
3827 * We FUA only the first super block. The others we allow to
3902 btrfs_err(device->fs_info, "error writing primary super block to device %llu",
4368 btrfs_err(fs_info, "commit super ret %d", ret);