Lines Matching refs:smbfile
3114 struct cifsFileInfo *smbfile = file->private_data; in cifs_strict_fsync() local
3137 tcon = tlink_tcon(smbfile->tlink); in cifs_strict_fsync()
3145 if ((OPEN_FMODE(smbfile->f_flags) & FMODE_WRITE) == 0) { in cifs_strict_fsync()
3146 smbfile = find_writable_file(CIFS_I(inode), FIND_WR_ANY); in cifs_strict_fsync()
3147 if (smbfile) { in cifs_strict_fsync()
3148 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_strict_fsync()
3149 cifsFileInfo_put(smbfile); in cifs_strict_fsync()
3153 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_strict_fsync()
3167 struct cifsFileInfo *smbfile = file->private_data; in cifs_fsync() local
3182 tcon = tlink_tcon(smbfile->tlink); in cifs_fsync()
3190 if ((OPEN_FMODE(smbfile->f_flags) & FMODE_WRITE) == 0) { in cifs_fsync()
3191 smbfile = find_writable_file(CIFS_I(inode), FIND_WR_ANY); in cifs_fsync()
3192 if (smbfile) { in cifs_fsync()
3193 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_fsync()
3194 cifsFileInfo_put(smbfile); in cifs_fsync()
3198 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_fsync()