summaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorDaniil Lunev <dlunev@chromium.org>2022-07-27 16:44:24 +1000
committerMiklos Szeredi <mszeredi@redhat.com>2022-07-27 11:30:30 +0200
commit04b9407197789c81fffac52921e703cb47967d6a (patch)
tree7a3cff2cee9ac275b7a3201a13f1c6d4c08e2a7a /fs/fuse/inode.c
parent73fb2c8b61783e2e8a87f91d141bf72a12404566 (diff)
downloadlinux-04b9407197789c81fffac52921e703cb47967d6a.tar.bz2
vfs: function to prevent re-use of block-device-based superblocks
The function is to be called from filesystem-specific code to mark a superblock to be ignored by superblock test and thus never re-used. The function also unregisters bdi if the bdi is per-superblock to avoid collision if a new superblock is created to represent the filesystem. generic_shutdown_super() skips unregistering bdi for a retired superlock as it assumes retire function has already done it. This patch adds the functionality only for the block-device-based supers, since the primary use case of the feature is to gracefully handle force unmount of external devices, mounted with FUSE. This can be further extended to cover all superblocks, if the need arises. Signed-off-by: Daniil Lunev <dlunev@chromium.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/inode.c')
0 files changed, 0 insertions, 0 deletions