Re: [PATCH] nvmet: add revalidation support to bdev and file backed namespaces

From: Chaitanya Kulkarni
Date: Fri Apr 03 2020 - 16:23:58 EST


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);

> +}
> +