| Submitter | Al Viro |
|---|---|
| Date | April 7, 2010, 10:19 p.m. |
| Message ID | <20100407221941.GL30031@ZenIV.linux.org.uk> |
| Download | mbox | patch |
| Permalink | /patch/49656/ |
| State | Not Applicable |
| Delegated to: | David Miller |
| Headers | show |
Comments
On Wed, 7 Apr 2010, Al Viro wrote: > > No, it's not the same thing; the fix is to have nfs ->d_revalidate() > return an error on failing open attempt (in insane codepath that has > ->d_revalidate() handling open()). Confirmed to work by reporter... Ok, can you do the proper changelog description and sign-offs etc? Linus -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index d79a7b3..fe0cd9e 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -2068,8 +2068,7 @@ nfs4_open_revalidate(struct inode *dir, struct dentry *dentry, int openflags, st case -EDQUOT: case -ENOSPC: case -EROFS: - lookup_instantiate_filp(nd, (struct dentry *)state, NULL); - return 1; + return PTR_ERR(state); default: goto out_drop; }