VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Jan Blunck <jblunck@suse.de> 2008-02-14 19:34:37 -0800 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2008-02-14 21:13:33 -0800 commit: 09da5916baf6d3fb9ac16c125c801ae6ea151f97 parent: 1d957f9bf87da74f420424d16ece005202bbebd3
Commit Summary:
Use path_put() in a few places instead of {mnt,d}put()
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c
index e13cea220669..a3510b8ba3e7 100644
--- a/fs/afs/mntpt.c
+++ b/fs/afs/mntpt.c
@@ -235,8 +235,7 @@ static void *afs_mntpt_follow_link(struct dentry *dentry, struct nameidata *nd)
 	err = do_add_mount(newmnt, nd, MNT_SHRINKABLE, &afs_vfsmounts);
 	switch (err) {
 	case 0:
-		dput(nd->path.dentry);
-		mntput(nd->path.mnt);
+		path_put(&nd->path);
 		nd->path.mnt = newmnt;
 		nd->path.dentry = dget(newmnt->mnt_root);
 		schedule_delayed_work(&afs_mntpt_expiry_timer,