[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <HE1PR0802MB2555BD29BC9B8528AA914998F46D0@HE1PR0802MB2555.eurprd08.prod.outlook.com>
Date: Thu, 2 Jul 2020 09:54:41 +0000
From: Jianyong Wu <Jianyong.Wu@....com>
To: Dominique Martinet <asmadeus@...ewreck.org>
CC: "ericvh@...il.com" <ericvh@...il.com>,
"lucho@...kov.net" <lucho@...kov.net>,
"v9fs-developer@...ts.sourceforge.net"
<v9fs-developer@...ts.sourceforge.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Steve Capper <Steve.Capper@....com>,
Kaly Xin <Kaly.Xin@....com>, Justin He <Justin.He@....com>,
Wei Chen <Wei.Chen@....com>
Subject: RE: [PATCH v2] 9p: retrieve fid from file when file instance exist.
Hi Dominique,
> -----Original Message-----
> From: Dominique Martinet <asmadeus@...ewreck.org>
> Sent: Thursday, July 2, 2020 3:56 PM
> To: Jianyong Wu <Jianyong.Wu@....com>
> Cc: ericvh@...il.com; lucho@...kov.net; v9fs-
> developer@...ts.sourceforge.net; linux-kernel@...r.kernel.org; Steve
> Capper <Steve.Capper@....com>; Kaly Xin <Kaly.Xin@....com>; Justin He
> <Justin.He@....com>; Wei Chen <Wei.Chen@....com>
> Subject: Re: [PATCH v2] 9p: retrieve fid from file when file instance exist.
>
> Jianyong Wu wrote on Thu, Jul 02, 2020:
> > Yeah, should check fid before "v9fs_fid_lookup", how about
> >
> > if (iattr->ia_valid & ATTR_FILE) {
> > fid = iattr->ia_file->private_data;
> > WARN_ON(!fid);
> > }
> > If (!fid)
> > fid = v9fs_fid_lookup(dentry);
>
> Yes, that would be fine.
>
Ok, I will apply this change both in vfs_inode.c and vfs_inode_dotl.c next version.
Thanks
Jianyong
> --
> Dominique
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Powered by blists - more mailing lists