Index: linux-2.6.3/fs/nfs/dir.c =================================================================== --- linux-2.6.3.orig/fs/nfs/dir.c 2004-02-23 14:36:26.000000000 -0800 +++ linux-2.6.3/fs/nfs/dir.c 2004-02-23 14:46:49.000000000 -0800 @@ -782,7 +782,7 @@ if (nd->flags & LOOKUP_DIRECTORY) return 0; /* Are we trying to write to a read only partition? */ - if (IS_RDONLY(dir) && (nd->intent.open.flags & (O_CREAT|O_TRUNC|FMODE_WRITE))) + if (IS_RDONLY(dir) && (nd->intent.it_flags & (O_CREAT|O_TRUNC|FMODE_WRITE))) return 0; return 1; } @@ -803,7 +803,7 @@ dentry->d_op = NFS_PROTO(dir)->dentry_ops; /* Let vfs_create() deal with O_EXCL */ - if (nd->intent.open.flags & O_EXCL) + if (nd->intent.it_flags & O_EXCL) goto no_entry; /* Open the file on the server */ @@ -811,7 +811,7 @@ /* Revalidate parent directory attribute cache */ nfs_revalidate_inode(NFS_SERVER(dir), dir); - if (nd->intent.open.flags & O_CREAT) { + if (nd->intent.it_flags & O_CREAT) { nfs_begin_data_update(dir); inode = nfs4_atomic_open(dir, dentry, nd); nfs_end_data_update(dir); @@ -827,7 +827,7 @@ break; /* This turned out not to be a regular file */ case -ELOOP: - if (!(nd->intent.open.flags & O_NOFOLLOW)) + if (!(nd->intent.it_flags & O_NOFOLLOW)) goto no_open; /* case -EISDIR: */ /* case -EINVAL: */ @@ -861,7 +861,7 @@ dir = parent->d_inode; if (!is_atomic_open(dir, nd)) goto no_open; - openflags = nd->intent.open.flags; + openflags = nd->intent.it_flags; if (openflags & O_CREAT) { /* If this is a negative dentry, just drop it */ if (!inode) .old..........pc/linux-2.6.3-nfs-intent/fs/nfs/nfs4proc.c .new.........fs/nfs/nfs4proc.c Index: linux-2.6.3/fs/nfs/nfs4proc.c =================================================================== --- linux-2.6.3.orig/fs/nfs/nfs4proc.c 2004-02-23 14:36:26.000000000 -0800 +++ linux-2.6.3/fs/nfs/nfs4proc.c 2004-02-23 14:36:26.000000000 -0800 @@ -458,17 +458,17 @@ struct nfs4_state *state; if (nd->flags & LOOKUP_CREATE) { - attr.ia_mode = nd->intent.open.create_mode; + attr.ia_mode = nd->intent.it_create_mode; attr.ia_valid = ATTR_MODE; if (!IS_POSIXACL(dir)) attr.ia_mode &= ~current->fs->umask; } else { attr.ia_valid = 0; - BUG_ON(nd->intent.open.flags & O_CREAT); + BUG_ON(nd->intent.it_flags & O_CREAT); } cred = rpcauth_lookupcred(NFS_SERVER(dir)->client->cl_auth, 0); - state = nfs4_do_open(dir, &dentry->d_name, nd->intent.open.flags, &attr, cred); + state = nfs4_do_open(dir, &dentry->d_name, nd->intent.it_flags, &attr, cred); put_rpccred(cred); if (IS_ERR(state)) return (struct inode *)state;