aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-08-18 23:49:57 -0400
committerSteve French <sfrench@us.ibm.com>2005-08-18 23:49:57 -0400
commitc46fa8acdc533e8084359ea11c79d56eb98313fb (patch)
treed9455c92f58c99e342856995668739236bdd09e3 /fs/cifs/inode.c
parent8d0d50948b276b46b75b1b5855d3f9fab1e0fd92 (diff)
[CIFS] Add mount option for disabling sending byte range lock requests
over the wire (to help the case when applications break with cifs mandatory lock behavior. Add part one of mount option for requesting case insensitive path name matching. Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 628aa1a9fe64..ed3e9207d92e 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -166,6 +166,8 @@ int cifs_get_inode_info_unix(struct inode **pinode,
166 inode->i_fop = &cifs_file_direct_ops; 166 inode->i_fop = &cifs_file_direct_ops;
167 else 167 else
168 inode->i_fop = &cifs_file_ops; 168 inode->i_fop = &cifs_file_ops;
169 if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL)
170 inode->i_fop->lock = NULL;
169 inode->i_data.a_ops = &cifs_addr_ops; 171 inode->i_data.a_ops = &cifs_addr_ops;
170 } else if (S_ISDIR(inode->i_mode)) { 172 } else if (S_ISDIR(inode->i_mode)) {
171 cFYI(1, (" Directory inode")); 173 cFYI(1, (" Directory inode"));
@@ -369,6 +371,8 @@ int cifs_get_inode_info(struct inode **pinode,
369 inode->i_fop = &cifs_file_direct_ops; 371 inode->i_fop = &cifs_file_direct_ops;
370 else 372 else
371 inode->i_fop = &cifs_file_ops; 373 inode->i_fop = &cifs_file_ops;
374 if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL)
375 inode->i_fop->lock = NULL;
372 inode->i_data.a_ops = &cifs_addr_ops; 376 inode->i_data.a_ops = &cifs_addr_ops;
373 } else if (S_ISDIR(inode->i_mode)) { 377 } else if (S_ISDIR(inode->i_mode)) {
374 cFYI(1, (" Directory inode ")); 378 cFYI(1, (" Directory inode "));