Re: [PATCH 5/8] fs: introduce struct super_operations::destroy_super() callback

From: Qi Zheng
Date: Wed May 31 2023 - 08:55:38 EST




On 2023/5/31 19:19, Christian Brauner wrote:
On Wed, May 31, 2023 at 09:57:39AM +0000, Qi Zheng wrote:
From: Kirill Tkhai <tkhai@xxxxx>

The patch introduces a new callback, which will be called
asynchronous from delayed work.

This will allows to make ::nr_cached_objects() safe
to be called on destroying superblock in next patches,
and to split unregister_shrinker() into two primitives.

Signed-off-by: Kirill Tkhai <tkhai@xxxxx>
Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
---
fs/super.c | 3 +++
include/linux/fs.h | 1 +
2 files changed, 4 insertions(+)

Misses updates to
Documentation/filesystems/locking.rst
Documentation/filesystems/vfs.rst

Will do.

Thanks,
Qi