diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-11 16:53:37 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-03 08:36:51 +0200 |
commit | 224941e8379a0de8652ffec768cc8394f0b1cb95 (patch) | |
tree | 07e1f4732b1a788e72dbb4abace0f415f503423f /fs/buffer.c | |
parent | block_device: add a pointer to struct address_space (page cache of bdev) (diff) | |
download | linux-224941e8379a0de8652ffec768cc8394f0b1cb95.tar.xz linux-224941e8379a0de8652ffec768cc8394f0b1cb95.zip |
use ->bd_mapping instead of ->bd_inode->i_mapping
Just the low-hanging fruit...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20240411145346.2516848-2-viro@zeniv.linux.org.uk
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 4f73d23c2c46..d5a0932ae68d 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1463,7 +1463,7 @@ __bread_gfp(struct block_device *bdev, sector_t block, { struct buffer_head *bh; - gfp |= mapping_gfp_constraint(bdev->bd_inode->i_mapping, ~__GFP_FS); + gfp |= mapping_gfp_constraint(bdev->bd_mapping, ~__GFP_FS); /* * Prefer looping in the allocator rather than here, at least that |