]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gfs2: Don't zero i_private_data
authorJan Kara <jack@suse.cz>
Thu, 26 Mar 2026 09:53:56 +0000 (10:53 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 26 Mar 2026 14:03:26 +0000 (15:03 +0100)
Remove the explicit zeroing of mapping->i_private_data since this
field is no longer used.

CC: Andreas Gruenbacher <agruenba@redhat.com>
CC: gfs2@lists.linux.dev
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260326095354.16340-44-jack@suse.cz
Tested-by: syzbot@syzkaller.appspotmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/gfs2/glock.c

index 2acbabccc8adf957e02845041193502a96370a6d..b8a144d3a73b8799c657be1a194d95c423fca750 100644 (file)
@@ -1149,7 +1149,6 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
                mapping->flags = 0;
                gfp_mask = mapping_gfp_mask(sdp->sd_inode->i_mapping);
                mapping_set_gfp_mask(mapping, gfp_mask);
-               mapping->i_private_data = NULL;
                mapping->writeback_index = 0;
        }