From: Josef Bacik <josef@redhat.com>
To: Wengang Wang <wen.gang.wang@oracle.com>
Cc: Josef Bacik <josef@redhat.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] Btrfs: fix how we freeze
Date: Tue, 23 Mar 2010 11:27:49 -0400 [thread overview]
Message-ID: <20100323152749.GF2381@localhost.localdomain> (raw)
In-Reply-To: <20100323152518.GA2733@laptop.oracle.com>
On Tue, Mar 23, 2010 at 11:25:18PM +0800, Wengang Wang wrote:
> On 10-03-23 11:03, Josef Bacik wrote:
> > On Tue, Mar 23, 2010 at 10:54:08PM +0800, Wengang Wang wrote:
> > > Hi,
> > >
> > > If the only thing is returning 0 in the freeze/unfreeze member functions, why
> > > not just remove the two functions?
> > >
> >
> > Because if the fs doesn't provide a freeze/unfreeze function, trying to do a
> > freeze will return -EOPNOTSUPP, which is not what we want. Thanks,
>
> How does freeze_fs()/unfreeze_fs() get called in btrfs? I think they
> called by freeze_bdev()/unfreeze_fs() respectively. And I don't see
> -EOPNOTSUPP is returned in the later two functions.
>
its in ioctl_fsfreeze,
/* If filesystem doesn't support freeze feature, return. */
if (sb->s_op->freeze_fs == NULL)
return -EOPNOTSUPP;
Thanks,
Josef
next prev parent reply other threads:[~2010-03-23 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 14:28 [PATCH] Btrfs: fix how we freeze Josef Bacik
2010-03-23 14:54 ` Wengang Wang
2010-03-23 15:03 ` Josef Bacik
2010-03-23 15:25 ` Wengang Wang
2010-03-23 15:27 ` Josef Bacik [this message]
2010-03-23 15:39 ` Wengang Wang
2010-03-23 15:30 ` Wengang Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100323152749.GF2381@localhost.localdomain \
--to=josef@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=wen.gang.wang@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox