.new.........fs/nfs/dir.c
.old..........pc/linux-2.6.3-nfs-intent-suse/fs/nfs/dir.c
.new.........fs/nfs/dir.c
-Index: linux-2.6.4-51.0/fs/nfs/dir.c
+Index: linux-2.6.3-mm4/fs/nfs/dir.c
===================================================================
---- linux-2.6.4-51.0.orig/fs/nfs/dir.c 2004-04-05 17:09:16.000000000 -0400
-+++ linux-2.6.4-51.0/fs/nfs/dir.c 2004-04-05 17:09:23.000000000 -0400
-@@ -782,7 +782,7 @@
+--- linux-2.6.3-mm4.orig/fs/nfs/dir.c 2004-03-08 17:05:35.000000000 +0800
++++ linux-2.6.3-mm4/fs/nfs/dir.c 2004-03-08 17:38:58.000000000 +0800
+@@ -773,7 +773,7 @@
if (nd->flags & LOOKUP_DIRECTORY)
return 0;
/* Are we trying to write to a read only partition? */
return 0;
return 1;
}
-@@ -803,7 +803,7 @@
+@@ -794,7 +794,7 @@
dentry->d_op = NFS_PROTO(dir)->dentry_ops;
/* Let vfs_create() deal with O_EXCL */
goto no_entry;
/* Open the file on the server */
-@@ -811,7 +811,7 @@
+@@ -802,7 +802,7 @@
/* Revalidate parent directory attribute cache */
nfs_revalidate_inode(NFS_SERVER(dir), dir);
nfs_begin_data_update(dir);
inode = nfs4_atomic_open(dir, dentry, nd);
nfs_end_data_update(dir);
-@@ -827,7 +827,7 @@
+@@ -818,7 +818,7 @@
break;
/* This turned out not to be a regular file */
case -ELOOP:
goto no_open;
/* case -EISDIR: */
/* case -EINVAL: */
-@@ -861,7 +861,7 @@
+@@ -852,7 +852,7 @@
dir = parent->d_inode;
if (!is_atomic_open(dir, nd))
goto no_open;
if (openflags & O_CREAT) {
/* If this is a negative dentry, just drop it */
if (!inode)
-Index: linux-2.6.4-51.0/fs/nfs/nfs4proc.c
+Index: linux-2.6.3-mm4/fs/nfs/nfs4proc.c
===================================================================
---- linux-2.6.4-51.0.orig/fs/nfs/nfs4proc.c 2004-04-05 12:41:59.000000000 -0400
-+++ linux-2.6.4-51.0/fs/nfs/nfs4proc.c 2004-04-05 17:09:23.000000000 -0400
-@@ -792,17 +792,17 @@
+--- linux-2.6.3-mm4.orig/fs/nfs/nfs4proc.c 2004-03-08 17:02:24.000000000 +0800
++++ linux-2.6.3-mm4/fs/nfs/nfs4proc.c 2004-03-08 17:37:59.000000000 +0800
+@@ -778,17 +778,17 @@
struct nfs4_state *state;
if (nd->flags & LOOKUP_CREATE) {
put_rpccred(cred);
if (IS_ERR(state))
return (struct inode *)state;
-Index: linux-2.6.4-51.0/fs/cifs/dir.c
+Index: linux-2.6.3-mm4/fs/cifs/dir.c
===================================================================
---- linux-2.6.4-51.0.orig/fs/cifs/dir.c 2004-04-05 12:41:59.000000000 -0400
-+++ linux-2.6.4-51.0/fs/cifs/dir.c 2004-04-05 17:13:47.000000000 -0400
-@@ -146,22 +146,22 @@
+--- linux-2.6.3-mm4.orig/fs/cifs/dir.c 2004-02-18 11:58:34.000000000 +0800
++++ linux-2.6.3-mm4/fs/cifs/dir.c 2004-03-08 17:37:59.000000000 +0800
+@@ -146,18 +146,18 @@
if(nd) {
cFYI(1,("In create for inode %p dentry->inode %p nd flags = 0x%x for %s",inode, direntry->d_inode, nd->flags,full_path));
- if ((nd->intent.open.flags & O_ACCMODE) == O_RDONLY)
+ if ((nd->intent.it_flags & O_ACCMODE) == O_RDONLY)
- desiredAccess = GENERIC_READ;
+ desiredAccess = GENERIC_READ;
- else if ((nd->intent.open.flags & O_ACCMODE) == O_WRONLY)
+ else if ((nd->intent.it_flags & O_ACCMODE) == O_WRONLY)
desiredAccess = GENERIC_WRITE;
-- else if ((nd->intent.open.flags & O_ACCMODE) == O_RDWR) {
-+ else if ((nd->intent.it_flags & O_ACCMODE) == O_RDWR) {
- /* GENERIC_ALL is too much permission to request */
- /* can cause unnecessary access denied on create */
- /* desiredAccess = GENERIC_ALL; */
- desiredAccess = GENERIC_READ | GENERIC_WRITE;
- }
+- else if ((nd->intent.open.flags & O_ACCMODE) == O_RDWR)
++ else if ((nd->intent.it_flags & O_ACCMODE) == O_RDWR)
+ desiredAccess = GENERIC_ALL;
- if((nd->intent.open.flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
+ if((nd->intent.it_flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
disposition = FILE_OPEN_IF;
else {
cFYI(1,("Create flag not set in create function"));
-@@ -319,7 +319,7 @@
+@@ -314,7 +314,7 @@
parent_dir_inode, direntry->d_name.name, direntry));
if(nd) { /* BB removeme */