* [PATCH] Btrfs: remove our ->freeze_fs and ->unfreeze_fs
@ 2012-09-14 18:00 Josef Bacik
2012-09-14 18:02 ` Josef Bacik
0 siblings, 1 reply; 2+ messages in thread
From: Josef Bacik @ 2012-09-14 18:00 UTC (permalink / raw)
To: linux-btrfs
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>
---
fs/btrfs/super.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 5aa3b81..fa80e2d 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -1509,22 +1509,6 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
return ret;
}
-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;
-}
-
static int btrfs_show_devname(struct seq_file *m, struct dentry *root)
{
struct btrfs_fs_info *fs_info = btrfs_sb(root->d_sb);
@@ -1570,8 +1554,6 @@ static const struct super_operations btrfs_super_ops = {
.destroy_inode = btrfs_destroy_inode,
.statfs = btrfs_statfs,
.remount_fs = btrfs_remount,
- .freeze_fs = btrfs_freeze,
- .unfreeze_fs = btrfs_unfreeze,
};
static const struct file_operations btrfs_ctl_fops = {
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Btrfs: remove our ->freeze_fs and ->unfreeze_fs
2012-09-14 18:00 [PATCH] Btrfs: remove our ->freeze_fs and ->unfreeze_fs Josef Bacik
@ 2012-09-14 18:02 ` Josef Bacik
0 siblings, 0 replies; 2+ messages in thread
From: Josef Bacik @ 2012-09-14 18:02 UTC (permalink / raw)
To: Josef Bacik; +Cc: linux-btrfs@vger.kernel.org
On Fri, Sep 14, 2012 at 12:00:37PM -0600, Josef Bacik wrote:
> 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,
>
Hrm ignore this, apparently we have to at least have a freeze_fs in order for
freeze to work.
Josef
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-14 18:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 18:00 [PATCH] Btrfs: remove our ->freeze_fs and ->unfreeze_fs Josef Bacik
2012-09-14 18:02 ` Josef Bacik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).