Skip to content

Commit a739765

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: dump glocks from gfs2_consist_OBJ_i
Before this patch, failed consistency checks printed out the object that failed, but not the object's glock. This patch makes it also print out the object glock so we can see the glock's holders and flags to aid with debugging. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 763766c commit a739765

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/gfs2/util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ void gfs2_consist_inode_i(struct gfs2_inode *ip,
454454
(unsigned long long)ip->i_no_formal_ino,
455455
(unsigned long long)ip->i_no_addr,
456456
function, file, line);
457+
gfs2_dump_glock(NULL, ip->i_gl, 1);
457458
gfs2_withdraw(sdp);
458459
}
459460

@@ -475,6 +476,7 @@ void gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd,
475476
" function = %s, file = %s, line = %u\n",
476477
(unsigned long long)rgd->rd_addr,
477478
function, file, line);
479+
gfs2_dump_glock(NULL, rgd->rd_gl, 1);
478480
gfs2_withdraw(sdp);
479481
}
480482

0 commit comments

Comments
 (0)