]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/inode.c
add function to convert access flags to legacy open mode
[linux-2.6-omap-h63xx.git] / fs / cifs / inode.c
index fcbdbb6ad7bfb45f9ea5606d9f5c7f078980d467..2d53b436d5113e31cfd82fcaeb24cbf41e4675be 100644 (file)
@@ -1502,8 +1502,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
                                int oplock = 0;
 
                                rc = SMBLegacyOpen(xid, pTcon, full_path,
-                                       FILE_OPEN,
-                                       SYNCHRONIZE | FILE_WRITE_ATTRIBUTES,
+                                       FILE_OPEN, GENERIC_WRITE,
                                        CREATE_NOT_DIR, &netfid, &oplock,
                                        NULL, cifs_sb->local_nls,
                                        cifs_sb->mnt_cifs_flags &