diff options
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 8fe19c973ee4..6fd0677915a0 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -700,7 +700,7 @@ cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) | |||
700 | struct cifsInodeInfo *cinode = CIFS_I(cfile->dentry->d_inode); | 700 | struct cifsInodeInfo *cinode = CIFS_I(cfile->dentry->d_inode); |
701 | cfile->fid.netfid = fid->netfid; | 701 | cfile->fid.netfid = fid->netfid; |
702 | cifs_set_oplock_level(cinode, oplock); | 702 | cifs_set_oplock_level(cinode, oplock); |
703 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; | 703 | cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); |
704 | } | 704 | } |
705 | 705 | ||
706 | static void | 706 | static void |
@@ -837,7 +837,7 @@ cifs_oplock_response(struct cifs_tcon *tcon, struct cifs_fid *fid, | |||
837 | { | 837 | { |
838 | return CIFSSMBLock(0, tcon, fid->netfid, current->tgid, 0, 0, 0, 0, | 838 | return CIFSSMBLock(0, tcon, fid->netfid, current->tgid, 0, 0, 0, 0, |
839 | LOCKING_ANDX_OPLOCK_RELEASE, false, | 839 | LOCKING_ANDX_OPLOCK_RELEASE, false, |
840 | cinode->clientCanCacheRead ? 1 : 0); | 840 | CIFS_CACHE_READ(cinode) ? 1 : 0); |
841 | } | 841 | } |
842 | 842 | ||
843 | static int | 843 | static int |