[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200702075627.GA23996@nautica>
Date: Thu, 2 Jul 2020 09:56:27 +0200
From: Dominique Martinet <asmadeus@...ewreck.org>
To: Jianyong Wu <Jianyong.Wu@....com>
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.
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.
--
Dominique
Powered by blists - more mailing lists