summaryrefslogtreecommitdiffstats
path: root/fs/nfs/namespace.c
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2008-05-02 22:42:45 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-05-16 18:43:30 +0200
commit31f31db1a15671513df9cd9fbe56ef45ee1e9a2a (patch)
treead4015fb8159aaa18041791c2c85e272c5565dd7 /fs/nfs/namespace.c
parentnfs: replace remaining __FUNCTION__ occurrences (diff)
downloadlinux-31f31db1a15671513df9cd9fbe56ef45ee1e9a2a.tar.xz
linux-31f31db1a15671513df9cd9fbe56ef45ee1e9a2a.zip
nfs: path_{get,put}() cleanups
Here are some more places where path_{get,put}() can be used instead of dput()/mntput() pair. Signed-off-by: Jan Blunck <jblunck@suse.de> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: "J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r--fs/nfs/namespace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c
index fca518006a52..2f285ef76399 100644
--- a/fs/nfs/namespace.c
+++ b/fs/nfs/namespace.c
@@ -137,8 +137,7 @@ static void * nfs_follow_mountpoint(struct dentry *dentry, struct nameidata *nd)
goto out_follow;
goto out_err;
}
- mntput(nd->path.mnt);
- dput(nd->path.dentry);
+ path_put(&nd->path);
nd->path.mnt = mnt;
nd->path.dentry = dget(mnt->mnt_root);
schedule_delayed_work(&nfs_automount_task, nfs_mountpoint_expiry_timeout);