Skip to content

Commit 2d0026a

Browse files
author
Al Viro
committed
gfs2: more obvious initializations of mapping->host
what's going on is copying the ->host of bdev's address_space Signed-off-by: Al Viro <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 53cd4cd commit 2d0026a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/gfs2/glock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
12271227
mapping = gfs2_glock2aspace(gl);
12281228
if (mapping) {
12291229
mapping->a_ops = &gfs2_meta_aops;
1230-
mapping->host = s->s_bdev->bd_inode;
1230+
mapping->host = s->s_bdev->bd_mapping->host;
12311231
mapping->flags = 0;
12321232
mapping_set_gfp_mask(mapping, GFP_NOFS);
12331233
mapping->i_private_data = NULL;

fs/gfs2/ops_fstype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static struct gfs2_sbd *init_sbd(struct super_block *sb)
114114

115115
address_space_init_once(mapping);
116116
mapping->a_ops = &gfs2_rgrp_aops;
117-
mapping->host = sb->s_bdev->bd_inode;
117+
mapping->host = sb->s_bdev->bd_mapping->host;
118118
mapping->flags = 0;
119119
mapping_set_gfp_mask(mapping, GFP_NOFS);
120120
mapping->i_private_data = NULL;

0 commit comments

Comments
 (0)