summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_pnfs.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2020-04-27 20:00:42 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-05-04 18:03:15 +0200
commitec43f6da31f100696b56e4781b62fb5367a40d71 (patch)
tree101eb5a44b874864860f05057076fd5eb42d5f29 /fs/xfs/xfs_pnfs.c
parentxfs: stop CONFIG_XFS_DEBUG from changing compiler flags (diff)
downloadlinux-ec43f6da31f100696b56e4781b62fb5367a40d71.tar.xz
linux-ec43f6da31f100696b56e4781b62fb5367a40d71.zip
xfs: define printk_once variants for xfs messages
There are a couple places where we directly call printk_once() and one of them doesn't follow the standard xfs subsystem printk format as a result. #define printk_once variants to go with our existing printk_ratelimited #defines so we can do one-shot printks in a consistent manner. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_pnfs.c')
-rw-r--r--fs/xfs/xfs_pnfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_pnfs.c b/fs/xfs/xfs_pnfs.c
index bb3008d390aa..b101feb2aab4 100644
--- a/fs/xfs/xfs_pnfs.c
+++ b/fs/xfs/xfs_pnfs.c
@@ -58,9 +58,8 @@ xfs_fs_get_uuid(
{
struct xfs_mount *mp = XFS_M(sb);
- printk_once(KERN_NOTICE
-"XFS (%s): using experimental pNFS feature, use at your own risk!\n",
- mp->m_super->s_id);
+ xfs_notice_once(mp,
+"Using experimental pNFS feature, use at your own risk!");
if (*len < sizeof(uuid_t))
return -EINVAL;