]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
cifs: switch cifs_open and cifs_create to use CIFSSMBUnixSetFileInfo
authorJeff Layton <jlayton@redhat.com>
Fri, 7 Jan 2011 16:30:29 +0000 (11:30 -0500)
committerSteve French <sfrench@us.ibm.com>
Sun, 9 Jan 2011 23:39:24 +0000 (23:39 +0000)
We call CIFSSMBUnixSetPathInfo in these functions, but we have a
filehandle since an open was just done. Switch these functions to
use CIFSSMBUnixSetFileInfo instead.

In practice, these codepaths are only used if posix opens are broken.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/dir.c
fs/cifs/file.c

index db2a58c00f7b237f8e8cd02147ecf97cbf8cbca5..2e773825835e837a4fd77ff038928c29dce191aa 100644 (file)
@@ -293,10 +293,8 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
                        args.uid = NO_CHANGE_64;
                        args.gid = NO_CHANGE_64;
                }
-               CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
-                                       cifs_sb->local_nls,
-                                       cifs_sb->mnt_cifs_flags &
-                                               CIFS_MOUNT_MAP_SPECIAL_CHR);
+               CIFSSMBUnixSetFileInfo(xid, tcon, &args, fileHandle,
+                                       current->tgid);
        } else {
                /* BB implement mode setting via Windows security
                   descriptors e.g. */
index 97ddbf2fdfc3aa46ebf0a9692e58993574e1ce4e..d843631c028d5939f57992701e95943318fe14ab 100644 (file)
@@ -424,10 +424,8 @@ int cifs_open(struct inode *inode, struct file *file)
                        .mtime  = NO_CHANGE_64,
                        .device = 0,
                };
-               CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
-                                      cifs_sb->local_nls,
-                                      cifs_sb->mnt_cifs_flags &
-                                       CIFS_MOUNT_MAP_SPECIAL_CHR);
+               CIFSSMBUnixSetFileInfo(xid, tcon, &args, netfid,
+                                       pCifsFile->pid);
        }
 
 out: