Skip to content

Commit

Permalink
Btrfs: don't do anything in our ->freeze_fs and ->unfreeze_fs
Browse files Browse the repository at this point in the history
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 <jbacik@fusionio.com>
  • Loading branch information
Josef Bacik authored and Chris Mason committed Oct 4, 2012
1 parent 892951a commit 926ced1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 926ced1

Please sign in to comment.