summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2022-08-18 13:32:36 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2022-08-25 17:10:59 +0200
commit04133b607a78f2fd3daadbe5519513942b0f3a05 (patch)
tree87c33d5a8aff04a8e114e280fd14d139f2029416 /fs/gfs2/glock.h
parentc412a97cf6c5253fcf4ae5545be5775b2417d61b (diff)
downloadlinux-04133b607a78f2fd3daadbe5519513942b0f3a05.tar.gz
linux-04133b607a78f2fd3daadbe5519513942b0f3a05.tar.bz2
linux-04133b607a78f2fd3daadbe5519513942b0f3a05.zip
gfs2: Prevent double iput for journal on error
When a gfs2 file system is withdrawn it does iput on its journal to allow recovery from another cluster node. If it's unable to get a replacement inode for whatever reason, the journal descriptor would still be pointing at the evicted inode. So when unmount clears out the list of journals, it would do a second iput referencing the pointer. To avoid this, set the inode pointer to NULL. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
0 files changed, 0 insertions, 0 deletions