btrfs: fix for write_super_lockfs/unlockfs error handling

Commit c4be0c1dc4cdc37b175579be1460f15ac6495e9a added the ability for
write_super_lockfs to return errors, and renamed them to match. But
btrfs didn't get converted.

Do the minimal conversion to make it compile again.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+6 -4
+6 -4
fs/btrfs/super.c
··· 605 return ret; 606 } 607 608 - static void btrfs_write_super_lockfs(struct super_block *sb) 609 { 610 struct btrfs_root *root = btrfs_sb(sb); 611 mutex_lock(&root->fs_info->transaction_kthread_mutex); 612 mutex_lock(&root->fs_info->cleaner_mutex); 613 } 614 615 - static void btrfs_unlockfs(struct super_block *sb) 616 { 617 struct btrfs_root *root = btrfs_sb(sb); 618 mutex_unlock(&root->fs_info->cleaner_mutex); 619 mutex_unlock(&root->fs_info->transaction_kthread_mutex); 620 } 621 622 static struct super_operations btrfs_super_ops = { ··· 633 .destroy_inode = btrfs_destroy_inode, 634 .statfs = btrfs_statfs, 635 .remount_fs = btrfs_remount, 636 - .write_super_lockfs = btrfs_write_super_lockfs, 637 - .unlockfs = btrfs_unlockfs, 638 }; 639 640 static const struct file_operations btrfs_ctl_fops = {
··· 605 return ret; 606 } 607 608 + static int btrfs_freeze(struct super_block *sb) 609 { 610 struct btrfs_root *root = btrfs_sb(sb); 611 mutex_lock(&root->fs_info->transaction_kthread_mutex); 612 mutex_lock(&root->fs_info->cleaner_mutex); 613 + return 0; 614 } 615 616 + static int btrfs_unfreeze(struct super_block *sb) 617 { 618 struct btrfs_root *root = btrfs_sb(sb); 619 mutex_unlock(&root->fs_info->cleaner_mutex); 620 mutex_unlock(&root->fs_info->transaction_kthread_mutex); 621 + return 0; 622 } 623 624 static struct super_operations btrfs_super_ops = { ··· 631 .destroy_inode = btrfs_destroy_inode, 632 .statfs = btrfs_statfs, 633 .remount_fs = btrfs_remount, 634 + .freeze_fs = btrfs_freeze, 635 + .unfreeze_fs = btrfs_unfreeze, 636 }; 637 638 static const struct file_operations btrfs_ctl_fops = {