Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24.4 /fs/nfsd/nfsfh.c

Filename:/fs/nfsd/nfsfh.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.24.4-rc3  2.6.24.4-rc2  2.6.24.4-rc1  2.6.24-git22  2.6.24-git21  2.6.24-git20 
(Following) 2.6.24.5  2.6.24.6  2.6.24.7  2.6.25-rc7  2.6.25-rc8  2.6.25-rc9 

Location
[  2.6.24.4
  [  fs
    [  nfsd
       o  nfsfh.c

Patch

diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
index 468f17a..429cec2 100644
--- a/fs/nfsd/nfsfh.c
+++ b/fs/nfsd/nfsfh.c
@@ -231,6 +231,7 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
       fhp->fh_dentry = dentry;
       fhp->fh_export = exp;
       nfsd_nr_verified++;
+      cache_get(&exp->h);
    } else {
       /*
        * just rechecking permissions
@@ -240,6 +241,7 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
       dprintk("nfsd: fh_verify - just checking\n");
       dentry = fhp->fh_dentry;
       exp = fhp->fh_export;
+      cache_get(&exp->h);
       /*
        * Set user creds for this exportpoint; necessary even
        * in the "just checking" case because this may be a
@@ -251,8 +253,6 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access)
       if (error)
          goto out;
    }
-   cache_get(&exp->h);
-
 
    error = nfsd_mode_check(rqstp, dentry->d_inode->i_mode, type);
    if (error)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.