diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 11:59:37 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 14:20:42 +0200 | 
| commit | dbb6be6d5e974c42bbecd183effaa0df69e1dd8b (patch) | |
| tree | 5735cb47e70853d057a9881dd0ce44b83e88fa63 /fs/nfs/dir.c | |
| parent | 6a867a395558a7f882d041783e4cdea6744ca2bf (diff) | |
| parent | b57f95a38233a2e73b679bea4a5453a1cc2a1cc9 (diff) | |
| download | olio-linux-3.10-dbb6be6d5e974c42bbecd183effaa0df69e1dd8b.tar.xz olio-linux-3.10-dbb6be6d5e974c42bbecd183effaa0df69e1dd8b.zip  | |
Merge branch 'linus' into timers/core
Reason: Further posix_cpu_timer patches depend on mainline changes
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/nfs/dir.c')
| -rw-r--r-- | fs/nfs/dir.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index a1f6b4438fb..a7bb5c694aa 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -837,6 +837,8 @@ out_zap_parent:  		/* If we have submounts, don't unhash ! */  		if (have_submounts(dentry))  			goto out_valid; +		if (dentry->d_flags & DCACHE_DISCONNECTED) +			goto out_valid;  		shrink_dcache_parent(dentry);  	}  	d_drop(dentry); @@ -1025,12 +1027,12 @@ static struct dentry *nfs_atomic_lookup(struct inode *dir, struct dentry *dentry  				res = NULL;  				goto out;  			/* This turned out not to be a regular file */ +			case -EISDIR:  			case -ENOTDIR:  				goto no_open;  			case -ELOOP:  				if (!(nd->intent.open.flags & O_NOFOLLOW))  					goto no_open; -			/* case -EISDIR: */  			/* case -EINVAL: */  			default:  				goto out; @@ -1050,7 +1052,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)  	struct inode *dir;  	int openflags, ret = 0; -	if (!is_atomic_open(nd)) +	if (!is_atomic_open(nd) || d_mountpoint(dentry))  		goto no_open;  	parent = dget_parent(dentry);  	dir = parent->d_inode; @@ -1789,7 +1791,7 @@ static int nfs_access_get_cached(struct inode *inode, struct rpc_cred *cred, str  	cache = nfs_access_search_rbtree(inode, cred);  	if (cache == NULL)  		goto out; -	if (!nfs_have_delegation(inode, FMODE_READ) && +	if (!nfs_have_delegated_attributes(inode) &&  	    !time_in_range_open(jiffies, cache->jiffies, cache->jiffies + nfsi->attrtimeo))  		goto out_stale;  	res->jiffies = cache->jiffies;  |