Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ext4: wire up sops->shutdown

Wire up the shutdown method to shut down the file system when the
underlying block device is marked dead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Link: https://lore.kernel.org/r/20230601094459.1350643-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
f5db130d 97524b45

+6
+6
fs/ext4/super.c
··· 1450 1450 EXT4_I(inode)->i_reserved_data_blocks); 1451 1451 } 1452 1452 1453 + static void ext4_shutdown(struct super_block *sb) 1454 + { 1455 + ext4_force_shutdown(sb, EXT4_GOING_FLAGS_NOLOGFLUSH); 1456 + } 1457 + 1453 1458 static void init_once(void *foo) 1454 1459 { 1455 1460 struct ext4_inode_info *ei = foo; ··· 1615 1610 .unfreeze_fs = ext4_unfreeze, 1616 1611 .statfs = ext4_statfs, 1617 1612 .show_options = ext4_show_options, 1613 + .shutdown = ext4_shutdown, 1618 1614 #ifdef CONFIG_QUOTA 1619 1615 .quota_read = ext4_quota_read, 1620 1616 .quota_write = ext4_quota_write,