Commit 5d687c02 authored by Pavel Shilovsky's avatar Pavel Shilovsky

Change share flags shift to 28 for 2.6.36

parent 22b17f35
...@@ -375,7 +375,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode, ...@@ -375,7 +375,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
if (cifs_sb->tcon->ses->capabilities & CAP_NT_SMBS) if (cifs_sb->tcon->ses->capabilities & CAP_NT_SMBS)
rc = CIFSSMBOpen(xid, tcon, full_path, disposition, rc = CIFSSMBOpen(xid, tcon, full_path, disposition,
desiredAccess, ((~(oflags>>21))&7), create_options, desiredAccess, ((~(oflags>>28))&7), create_options,
&fileHandle, &oplock, buf, cifs_sb->local_nls, &fileHandle, &oplock, buf, cifs_sb->local_nls,
cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
else else
......
...@@ -108,7 +108,7 @@ static inline int cifs_get_disposition(unsigned int flags) ...@@ -108,7 +108,7 @@ static inline int cifs_get_disposition(unsigned int flags)
static inline int cifs_get_share_flags(unsigned int flags) static inline int cifs_get_share_flags(unsigned int flags)
{ {
return ((~(flags>>21))&7); return ((~(flags>>28))&7);
} }
/* all arguments to this function must be checked for validity in caller */ /* all arguments to this function must be checked for validity in caller */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment