[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZqD8dWFG5uxmJ6yn@infradead.org>
Date: Wed, 24 Jul 2024 06:07:01 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Dongliang Cui <dongliang.cui@...soc.com>
Cc: linkinjeon@...nel.org, sj1557.seo@...sung.com,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
niuzhiguo84@...il.com, hao_hao.wang@...soc.com, ke.wang@...soc.com,
cuidongliang390@...il.com, Zhiguo Niu <zhiguo.niu@...soc.com>
Subject: Re: [PATCH v2] exfat: check disk status during buffer write
> +static int exfat_block_device_ejected(struct super_block *sb)
> +{
> + struct backing_dev_info *bdi = sb->s_bdi;
> +
> + return bdi->dev == NULL;
> +}
NAK, file systems have no business looking at this. What you probably
really want is to implement the ->shutdown method for exfat so it gets
called on device removal.
Powered by blists - more mailing lists