Lines Matching refs:smbfile
2934 struct cifsFileInfo *smbfile = file->private_data; in cifs_strict_fsync() local
2957 tcon = tlink_tcon(smbfile->tlink); in cifs_strict_fsync()
2965 if ((OPEN_FMODE(smbfile->f_flags) & FMODE_WRITE) == 0) { in cifs_strict_fsync()
2966 smbfile = find_writable_file(CIFS_I(inode), FIND_WR_ANY); in cifs_strict_fsync()
2967 if (smbfile) { in cifs_strict_fsync()
2968 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_strict_fsync()
2969 cifsFileInfo_put(smbfile); in cifs_strict_fsync()
2973 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_strict_fsync()
2987 struct cifsFileInfo *smbfile = file->private_data; in cifs_fsync() local
3002 tcon = tlink_tcon(smbfile->tlink); in cifs_fsync()
3010 if ((OPEN_FMODE(smbfile->f_flags) & FMODE_WRITE) == 0) { in cifs_fsync()
3011 smbfile = find_writable_file(CIFS_I(inode), FIND_WR_ANY); in cifs_fsync()
3012 if (smbfile) { in cifs_fsync()
3013 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_fsync()
3014 cifsFileInfo_put(smbfile); in cifs_fsync()
3018 rc = server->ops->flush(xid, tcon, &smbfile->fid); in cifs_fsync()