Skip to content

Commit 03d468f

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: improvements to sysfs status
This patch adds some new fields to the gfs2 status file in sysfs to aid in debugging. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 9f494e9 commit 03d468f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

fs/gfs2/sys.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ static ssize_t status_show(struct gfs2_sbd *sdp, char *buf)
9898
"sd_log_flush_head: %d\n"
9999
"sd_log_flush_tail: %d\n"
100100
"sd_log_blks_reserved: %d\n"
101-
"sd_log_revokes_available: %d\n",
101+
"sd_log_revokes_available: %d\n"
102+
"sd_log_pinned: %d\n"
103+
"sd_log_thresh1: %d\n"
104+
"sd_log_thresh2: %d\n",
102105
test_bit(SDF_JOURNAL_CHECKED, &f),
103106
test_bit(SDF_JOURNAL_LIVE, &f),
104107
(sdp->sd_jdesc ? sdp->sd_jdesc->jd_jid : 0),
@@ -128,7 +131,10 @@ static ssize_t status_show(struct gfs2_sbd *sdp, char *buf)
128131
sdp->sd_log_flush_head,
129132
sdp->sd_log_flush_tail,
130133
sdp->sd_log_blks_reserved,
131-
atomic_read(&sdp->sd_log_revokes_available));
134+
atomic_read(&sdp->sd_log_revokes_available),
135+
atomic_read(&sdp->sd_log_pinned),
136+
atomic_read(&sdp->sd_log_thresh1),
137+
atomic_read(&sdp->sd_log_thresh2));
132138
return s;
133139
}
134140

0 commit comments

Comments
 (0)