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:
committed by
Trond Myklebust
parent
3110ff8048
commit
31f31db1a1
@ -306,8 +306,7 @@ static void nfs4_opendata_free(struct kref *kref)
|
||||
nfs4_put_open_state(p->state);
|
||||
nfs4_put_state_owner(p->owner);
|
||||
dput(p->dir);
|
||||
dput(p->path.dentry);
|
||||
mntput(p->path.mnt);
|
||||
path_put(&p->path);
|
||||
kfree(p);
|
||||
}
|
||||
|
||||
@ -1210,8 +1209,7 @@ static void nfs4_free_closedata(void *data)
|
||||
nfs4_put_open_state(calldata->state);
|
||||
nfs_free_seqid(calldata->arg.seqid);
|
||||
nfs4_put_state_owner(sp);
|
||||
dput(calldata->path.dentry);
|
||||
mntput(calldata->path.mnt);
|
||||
path_put(&calldata->path);
|
||||
kfree(calldata);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user