aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-01-07 11:30:29 -0500
committerSteve French <sfrench@us.ibm.com>2011-01-09 18:39:24 -0500
commitd44a9fe2c8af3fee8edb203e9b11e507851c50fa (patch)
tree3deff359e1d04811af9c0b232107180d6bd490cd /fs/cifs/file.c
parentca40b714b8f9f20118b7071cb7cf49954166dbdf (diff)
cifs: switch cifs_open and cifs_create to use CIFSSMBUnixSetFileInfo
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>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 97ddbf2fdfc3..d843631c028d 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -424,10 +424,8 @@ int cifs_open(struct inode *inode, struct file *file)
424 .mtime = NO_CHANGE_64, 424 .mtime = NO_CHANGE_64,
425 .device = 0, 425 .device = 0,
426 }; 426 };
427 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, 427 CIFSSMBUnixSetFileInfo(xid, tcon, &args, netfid,
428 cifs_sb->local_nls, 428 pCifsFile->pid);
429 cifs_sb->mnt_cifs_flags &
430 CIFS_MOUNT_MAP_SPECIAL_CHR);
431 } 429 }
432 430
433out: 431out: