diff options
Diffstat (limited to 'fs/cifs/smb2ops.c')
| -rw-r--r-- | fs/cifs/smb2ops.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index e47190cae163..c31e84ee3c39 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -1364,6 +1364,7 @@ smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock)  	cfile->fid.persistent_fid = fid->persistent_fid;  	cfile->fid.volatile_fid = fid->volatile_fid; +	cfile->fid.access = fid->access;  #ifdef CONFIG_CIFS_DEBUG2  	cfile->fid.mid = fid->mid;  #endif /* CIFS_DEBUG2 */ @@ -3327,7 +3328,7 @@ static loff_t smb3_llseek(struct file *file, struct cifs_tcon *tcon, loff_t offs  	 * some servers (Windows2016) will not reflect recent writes in  	 * QUERY_ALLOCATED_RANGES until SMB2_flush is called.  	 */ -	wrcfile = find_writable_file(cifsi, false); +	wrcfile = find_writable_file(cifsi, FIND_WR_ANY);  	if (wrcfile) {  		filemap_write_and_wait(inode->i_mapping);  		smb2_flush_file(xid, tcon, &wrcfile->fid); |