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