aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
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 "));