mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
3110ff8048
commit
31f31db1a1
3 changed files with 4 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue