nfs: Clean up debugging in nfs_follow_mountpoint()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 15 Feb 2012 21:35:17 +0000 (16:35 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Feb 2012 20:05:16 +0000 (15:05 -0500)
Clean up: Fix a debugging message which had an obsolete function name
in it (nfs_follow_mountpoint).

Introduced by commit 36d43a43 "NFS: Use d_automount() rather than
abusing follow_link()" (January 14, 2011)

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/namespace.c

index 8102391bb3744077ae778af2d5bdb5d135ed3fbf..1807866bb3ab845098de2a95c695bee5460aaf37 100644 (file)
@@ -276,7 +276,10 @@ out:
        nfs_free_fattr(fattr);
        nfs_free_fhandle(fh);
 out_nofree:
-       dprintk("<-- nfs_follow_mountpoint() = %p\n", mnt);
+       if (IS_ERR(mnt))
+               dprintk("<-- %s(): error %ld\n", __func__, PTR_ERR(mnt));
+       else
+               dprintk("<-- %s() = %p\n", __func__, mnt);
        return mnt;
 }