]> www.infradead.org Git - users/hch/block.git/commit
fs: add a method to shut down the file system
authorChristoph Hellwig <hch@lst.de>
Fri, 5 May 2023 13:06:52 +0000 (09:06 -0400)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 May 2023 14:00:26 +0000 (10:00 -0400)
commitcc3d5ad5d5a87397fc78f07565c99c70d83b23aa
treeb5640cb680a140d27a55eefaad6a0409217c66de
parent796fd73a68e124885cd7ac8efa386bc92b356fea
fs: add a method to shut down the file system

Add a new ->shutdown super operation that can be used to tell the file
system to shut down, and call it from newly created holder ops when the
block device under a file system shuts down.

This only covers the main block device for "simple" file systems using
get_tree_bdev / mount_bdev.  File systems their own get_tree method
or opening additional devices will need to set up their own
blk_holder_ops.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/super.c
include/linux/fs.h