[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8472C4CD-AFE4-484D-868E-0DAA3406D0BE@oracle.com>
Date: Wed, 5 Oct 2022 13:33:43 +0000
From: Chuck Lever III <chuck.lever@...cle.com>
To: Jeff Layton <jlayton@...nel.org>
CC: Neil Brown <neilb@...e.de>, Theodore Ts'o <tytso@....edu>,
"adilger.kernel@...ger.ca" <adilger.kernel@...ger.ca>,
"Darrick J. Wong" <djwong@...nel.org>,
Dave Chinner <david@...morbit.com>,
Trond Myklebust <trondmy@...merspace.com>,
Al Viro <viro@...iv.linux.org.uk>,
"zohar@...ux.ibm.com" <zohar@...ux.ibm.com>,
"xiubli@...hat.com" <xiubli@...hat.com>,
Lukas Czerner <lczerner@...hat.com>, Jan Kara <jack@...e.cz>,
Bruce Fields <bfields@...ldses.org>,
Christian Brauner <brauner@...nel.org>,
"fweimer@...hat.com" <fweimer@...hat.com>,
"linux-btrfs@...r.kernel.org" <linux-btrfs@...r.kernel.org>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"ceph-devel@...r.kernel.org" <ceph-devel@...r.kernel.org>,
"linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>,
Linux NFS Mailing List <linux-nfs@...r.kernel.org>,
"linux-xfs@...r.kernel.org" <linux-xfs@...r.kernel.org>
Subject: Re: [PATCH v6 6/9] nfsd: use the getattr operation to fetch i_version
> On Oct 5, 2022, at 6:06 AM, Jeff Layton <jlayton@...nel.org> wrote:
>
> On Tue, 2022-10-04 at 10:39 +1100, NeilBrown wrote:
>> On Fri, 30 Sep 2022, Jeff Layton wrote:
>>>
>>> diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
>>> index a5b71526cee0..9168bc657378 100644
>>> --- a/fs/nfsd/nfsfh.c
>>> +++ b/fs/nfsd/nfsfh.c
>>> @@ -634,6 +634,10 @@ void fh_fill_pre_attrs(struct svc_fh *fhp)
>>> stat.mtime = inode->i_mtime;
>>> stat.ctime = inode->i_ctime;
>>> stat.size = inode->i_size;
>>> + if (v4 && IS_I_VERSION(inode)) {
>>> + stat.version = inode_query_iversion(inode);
>>> + stat.result_mask |= STATX_VERSION;
>>> + }
>>
>> This is increasingly ugly. I wonder if it is justified at all...
>>
>
> I'm fine with dropping that. So if the getattrs fail, we should just not
> offer up pre/post attrs?
That sounds good to me.
--
Chuck Lever
Powered by blists - more mailing lists