Commit d7c32675021bd750d8e0e726f2f81f746e8cab01

Authored by Chuck Lever
Committed by Trond Myklebust
1 parent dbb9c2a22d

nfs: Clean up debugging in nfs_follow_mountpoint()

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>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -276,7 +276,10 @@
276 276 nfs_free_fattr(fattr);
277 277 nfs_free_fhandle(fh);
278 278 out_nofree:
279   - dprintk("<-- nfs_follow_mountpoint() = %p\n", mnt);
  279 + if (IS_ERR(mnt))
  280 + dprintk("<-- %s(): error %ld\n", __func__, PTR_ERR(mnt));
  281 + else
  282 + dprintk("<-- %s() = %p\n", __func__, mnt);
280 283 return mnt;
281 284 }
282 285