]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Fix I_NEW check in gfs2_dinode_in
authorBob Peterson <rpeterso@redhat.com>
Wed, 19 May 2021 18:45:56 +0000 (14:45 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 20 May 2021 11:31:37 +0000 (13:31 +0200)
commitd435c52fcd804046f8bc83ec64e19f6a1c5356f5
treedd13f6b6ccca7f77928bd65b3c66ada3109d805f
parentb693e76ac4bc7fcdaad30474e7321c3534c724e0
gfs2: Fix I_NEW check in gfs2_dinode_in

Patch eef759958f81 added a new check for I_NEW inodes, but unfortunately
it used the wrong variable, i_flags. This caused GFS2 to withdraw when
gfs2_lookup_by_inum needed to refresh an I_NEW inode. This patch switches
to use the correct variable, i_state.

Fixes: eef759958f81 ("gfs2: be careful with inode refresh")
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c