smb1ops.c (e6eff2056b64376910b72e90fb9140500979da0b) | smb1ops.c (6f17163b9339fac92023a1d9bef22128db3b9a4b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * SMB1 (CIFS) version specific operations 4 * 5 * Copyright (c) 2012, Jeff Layton <jlayton@redhat.com> 6 */ 7 8#include <linux/pagemap.h> --- 739 unchanged lines hidden (view full) --- 748cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) 749{ 750 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); 751 cfile->fid.netfid = fid->netfid; 752 cifs_set_oplock_level(cinode, oplock); 753 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); 754} 755 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * SMB1 (CIFS) version specific operations 4 * 5 * Copyright (c) 2012, Jeff Layton <jlayton@redhat.com> 6 */ 7 8#include <linux/pagemap.h> --- 739 unchanged lines hidden (view full) --- 748cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) 749{ 750 struct cifsInodeInfo *cinode = CIFS_I(d_inode(cfile->dentry)); 751 cfile->fid.netfid = fid->netfid; 752 cifs_set_oplock_level(cinode, oplock); 753 cinode->can_cache_brlcks = CIFS_CACHE_WRITE(cinode); 754} 755 |
756static void | 756static int |
757cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, 758 struct cifs_fid *fid) 759{ | 757cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, 758 struct cifs_fid *fid) 759{ |
760 CIFSSMBClose(xid, tcon, fid->netfid); | 760 return CIFSSMBClose(xid, tcon, fid->netfid); |
761} 762 763static int 764cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon, 765 struct cifs_fid *fid) 766{ 767 return CIFSSMBFlush(xid, tcon, fid->netfid); 768} --- 489 unchanged lines hidden --- | 761} 762 763static int 764cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon, 765 struct cifs_fid *fid) 766{ 767 return CIFSSMBFlush(xid, tcon, fid->netfid); 768} --- 489 unchanged lines hidden --- |