diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 18:32:44 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 18:32:44 -0400 |
| commit | 161fb0cf5c7e94cd0490e4bd04edcf1e24d1d288 (patch) | |
| tree | 38b0da03ce66f053e8cfed6c081c62aef22a544d /fs/nfs/namespace.c | |
| parent | b8291ad07a7f3b5b990900f0001198ac23ba893e (diff) | |
| parent | b4528762ca92261c6ed3f03e76adeb1dc587aacb (diff) | |
Merge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
* 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
SUNRPC: AUTH_SYS "machine creds" shouldn't use negative valued uid/gid
nfs: make nfs4_drop_state_owner() static
nfs: path_{get,put}() cleanups
nfs: replace remaining __FUNCTION__ occurrences
nfs/lsm: make NFSv4 set LSM mount options
NFSv4: Check the return value of decode_compound_hdr_arg()
nfs: fix race in nfs_dirty_request
NFS: Ensure that 'noac' and/or 'actimeo=0' turn off attribute caching
Diffstat (limited to 'fs/nfs/namespace.c')
| -rw-r--r-- | fs/nfs/namespace.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index af4d0f1e402c..2f285ef76399 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
| @@ -106,7 +106,7 @@ static void * nfs_follow_mountpoint(struct dentry *dentry, struct nameidata *nd) | |||
| 106 | dprintk("--> nfs_follow_mountpoint()\n"); | 106 | dprintk("--> nfs_follow_mountpoint()\n"); |
| 107 | 107 | ||
| 108 | BUG_ON(IS_ROOT(dentry)); | 108 | BUG_ON(IS_ROOT(dentry)); |
| 109 | dprintk("%s: enter\n", __FUNCTION__); | 109 | dprintk("%s: enter\n", __func__); |
| 110 | dput(nd->path.dentry); | 110 | dput(nd->path.dentry); |
| 111 | nd->path.dentry = dget(dentry); | 111 | nd->path.dentry = dget(dentry); |
| 112 | 112 | ||
| @@ -137,13 +137,12 @@ static void * nfs_follow_mountpoint(struct dentry *dentry, struct nameidata *nd) | |||
| 137 | goto out_follow; | 137 | goto out_follow; |
| 138 | goto out_err; | 138 | goto out_err; |
| 139 | } | 139 | } |
| 140 | mntput(nd->path.mnt); | 140 | path_put(&nd->path); |
| 141 | dput(nd->path.dentry); | ||
| 142 | nd->path.mnt = mnt; | 141 | nd->path.mnt = mnt; |
| 143 | nd->path.dentry = dget(mnt->mnt_root); | 142 | nd->path.dentry = dget(mnt->mnt_root); |
| 144 | schedule_delayed_work(&nfs_automount_task, nfs_mountpoint_expiry_timeout); | 143 | schedule_delayed_work(&nfs_automount_task, nfs_mountpoint_expiry_timeout); |
| 145 | out: | 144 | out: |
| 146 | dprintk("%s: done, returned %d\n", __FUNCTION__, err); | 145 | dprintk("%s: done, returned %d\n", __func__, err); |
| 147 | 146 | ||
| 148 | dprintk("<-- nfs_follow_mountpoint() = %d\n", err); | 147 | dprintk("<-- nfs_follow_mountpoint() = %d\n", err); |
| 149 | return ERR_PTR(err); | 148 | return ERR_PTR(err); |
| @@ -230,7 +229,7 @@ static struct vfsmount *nfs_do_submount(const struct vfsmount *mnt_parent, | |||
| 230 | 229 | ||
| 231 | dprintk("--> nfs_do_submount()\n"); | 230 | dprintk("--> nfs_do_submount()\n"); |
| 232 | 231 | ||
| 233 | dprintk("%s: submounting on %s/%s\n", __FUNCTION__, | 232 | dprintk("%s: submounting on %s/%s\n", __func__, |
| 234 | dentry->d_parent->d_name.name, | 233 | dentry->d_parent->d_name.name, |
| 235 | dentry->d_name.name); | 234 | dentry->d_name.name); |
| 236 | if (page == NULL) | 235 | if (page == NULL) |
| @@ -243,7 +242,7 @@ static struct vfsmount *nfs_do_submount(const struct vfsmount *mnt_parent, | |||
| 243 | free_page: | 242 | free_page: |
| 244 | free_page((unsigned long)page); | 243 | free_page((unsigned long)page); |
| 245 | out: | 244 | out: |
| 246 | dprintk("%s: done\n", __FUNCTION__); | 245 | dprintk("%s: done\n", __func__); |
| 247 | 246 | ||
| 248 | dprintk("<-- nfs_do_submount() = %p\n", mnt); | 247 | dprintk("<-- nfs_do_submount() = %p\n", mnt); |
| 249 | return mnt; | 248 | return mnt; |
