summaryrefslogtreecommitdiff
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2019-12-10 15:31:15 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-01-15 18:15:17 +0300
commitce8866f0913ff157edc098f06bad07763ad317e7 (patch)
tree58ff854f41cb7f7bd626a9d734f883c804488887 /fs/nfs/super.c
parent62a55d088cd87d480a6fd67b0d63b14ccae80838 (diff)
downloadlinux-ce8866f0913ff157edc098f06bad07763ad317e7.tar.xz
NFS: Attach supplementary error information to fs_context.
Split out from commit "NFS: Add fs_context support." Add wrappers nfs_errorf(), nfs_invalf(), and nfs_warnf() which log error information to the fs_context. Convert some printk's to use these new wrappers instead. Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index ed0290d5ebf3..76e0198adcfa 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1205,7 +1205,7 @@ int nfs_get_tree_common(struct fs_context *fc)
fc->s_fs_info = NULL;
if (IS_ERR(s)) {
error = PTR_ERR(s);
- dfprintk(MOUNT, "NFS: Couldn't get superblock\n");
+ nfs_errorf(fc, "NFS: Couldn't get superblock");
goto out_err_nosb;
}
@@ -1234,7 +1234,7 @@ int nfs_get_tree_common(struct fs_context *fc)
error = nfs_get_root(s, fc);
if (error < 0) {
- dfprintk(MOUNT, "NFS: Couldn't get root dentry\n");
+ nfs_errorf(fc, "NFS: Couldn't get root dentry");
goto error_splat_super;
}