From: Josef Bacik Date: Fri, 14 Sep 2012 17:58:59 +0000 (-0400) Subject: Btrfs: don't do anything in our ->freeze_fs and ->unfreeze_fs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=926ced123bd6651b30a07f65a2a8a0b26154cd58;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: don't do anything in our ->freeze_fs and ->unfreeze_fs We do not need to do anything special to freeze or unfreeze, it's all taken care of by the generic work, and what we currently have is wrong anyway since we shouldn't be returnning to userspace with mutexes held anyway. Thanks, Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 5aa3b8182d96..fb260bbf59c6 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1511,17 +1511,11 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd, static int btrfs_freeze(struct super_block *sb) { - struct btrfs_fs_info *fs_info = btrfs_sb(sb); - mutex_lock(&fs_info->transaction_kthread_mutex); - mutex_lock(&fs_info->cleaner_mutex); return 0; } static int btrfs_unfreeze(struct super_block *sb) { - struct btrfs_fs_info *fs_info = btrfs_sb(sb); - mutex_unlock(&fs_info->cleaner_mutex); - mutex_unlock(&fs_info->transaction_kthread_mutex); return 0; }