]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: Make bhs point to mapping_metadata_bhs
authorJan Kara <jack@suse.cz>
Thu, 26 Mar 2026 09:54:25 +0000 (10:54 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 26 Mar 2026 14:03:31 +0000 (15:03 +0100)
commitc86f5d25514c2a60fcf5ea0aa11c5d8bd1a313ef
treeca961a0d75763eee6b8545b6c21ff4d327ca7240
parent521bea7cec8a79684402d555caab408ed43171d5
fs: Make bhs point to mapping_metadata_bhs

Make buffer heads point to mapping_metadata_bhs instead of struct
address_space. This makes the code more self contained. For the (only)
case of IO error handling where we really need to reach struct
address_space add a pointer to the mapping from mapping_metadata_bhs.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260326095354.16340-73-jack@suse.cz
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/buffer.c
fs/inode.c
include/linux/buffer_head.h
include/linux/fs.h