Thread (45 messages) 45 messages, 8 authors, 2023-09-04

Re: [PATCH 07/12] fs: stop using get_super in fs_mark_dead

From: Christian Brauner <brauner@kernel.org>
Date: 2023-08-03 18:15:24
Also in: linux-btrfs, linux-ext4, linux-f2fs-devel, linux-fsdevel, linux-xfs

On Wed, Aug 02, 2023 at 05:41:26PM +0200, Christoph Hellwig wrote:
fs_mark_dead currently uses get_super to find the superblock for the
block device that is going away.  This means it is limited to the
main device stored in sb->s_dev, leading to a lot of code duplication
for file systems that can use multiple block devices.

Now that the holder for all block devices used by file systems is set
to the super_block, we can instead look at that holder and then check
if the file system is born and active, so do that instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
Looks good to me,
Reviewed-by: Christian Brauner <brauner@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help