[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BYAPR04MB49652594CD66C48E2F6996F086C70@BYAPR04MB4965.namprd04.prod.outlook.com>
Date: Fri, 3 Apr 2020 20:23:53 +0000
From: Chaitanya Kulkarni <Chaitanya.Kulkarni@....com>
To: Anthony Iliopoulos <ailiop@...e.com>,
Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>
CC: "linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] nvmet: add revalidation support to bdev and file backed
namespaces
On 04/02/2020 12:31 PM, Anthony Iliopoulos wrote:
> +void nvmet_bdev_ns_revalidate(struct nvmet_ns *ns)
> +{
> + loff_t size;
> +
> + size = i_size_read(ns->bdev->bd_inode);
> +
> + if (ns->size != size)
> + ns->size = size;
How about following one line which is still readable ?
ns->size = i_size_read(ns->bdev->bd_inode);
> +}
> +
Powered by blists - more mailing lists