Skip to content

Commit 099bf44

Browse files
author
Christoph Hellwig
committed
xfs: wire up the show_stats super operation
The show_stats option allows a file system to dump plain text statistic on a per-mount basis into /proc/*/mountstats. Wire up a no-op version which will grow useful information for zoned file systems later. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
1 parent 64d0361 commit 099bf44

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

fs/xfs/xfs_super.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,14 @@ xfs_fs_shutdown(
12581258
xfs_force_shutdown(XFS_M(sb), SHUTDOWN_DEVICE_REMOVED);
12591259
}
12601260

1261+
static int
1262+
xfs_fs_show_stats(
1263+
struct seq_file *m,
1264+
struct dentry *root)
1265+
{
1266+
return 0;
1267+
}
1268+
12611269
static const struct super_operations xfs_super_operations = {
12621270
.alloc_inode = xfs_fs_alloc_inode,
12631271
.destroy_inode = xfs_fs_destroy_inode,
@@ -1272,6 +1280,7 @@ static const struct super_operations xfs_super_operations = {
12721280
.nr_cached_objects = xfs_fs_nr_cached_objects,
12731281
.free_cached_objects = xfs_fs_free_cached_objects,
12741282
.shutdown = xfs_fs_shutdown,
1283+
.show_stats = xfs_fs_show_stats,
12751284
};
12761285

12771286
static int

0 commit comments

Comments
 (0)