Lines Matching refs:cifs_sb

285 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);  in cifs_posix_open()  local
296 tlink = cifs_sb_tlink(cifs_sb); in cifs_posix_open()
307 poplock, full_path, cifs_sb->local_nls, in cifs_posix_open()
308 cifs_remap(cifs_sb)); in cifs_posix_open()
320 cifs_unix_basic_to_fattr(&fattr, presp_data, cifs_sb); in cifs_posix_open()
341 static int cifs_nt_open(const char *full_path, struct inode *inode, struct cifs_sb_info *cifs_sb, in cifs_nt_open() argument
394 .cifs_sb = cifs_sb, in cifs_nt_open()
396 .create_options = cifs_create_options(cifs_sb, create_options), in cifs_nt_open()
621 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in _cifsFileInfo_put() local
656 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) in _cifsFileInfo_put()
696 struct cifs_sb_info *cifs_sb; in cifs_open() local
710 cifs_sb = CIFS_SB(inode->i_sb); in cifs_open()
711 if (unlikely(cifs_forced_shutdown(cifs_sb))) { in cifs_open()
716 tlink = cifs_sb_tlink(cifs_sb); in cifs_open()
735 cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) { in cifs_open()
736 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) in cifs_open()
767 cifs_sb->ctx->file_mode /* ignored */, in cifs_open()
797 rc = cifs_nt_open(full_path, inode, cifs_sb, tcon, file->f_flags, &oplock, &fid, in cifs_open()
866 struct cifs_sb_info *cifs_sb = CIFS_SB(cfile->dentry->d_sb); in cifs_relock_file() local
879 ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) in cifs_relock_file()
895 struct cifs_sb_info *cifs_sb; in cifs_reopen_file() local
916 cifs_sb = CIFS_SB(inode->i_sb); in cifs_reopen_file()
955 cifs_sb->ctx->file_mode /* ignored */, in cifs_reopen_file()
983 .cifs_sb = cifs_sb, in cifs_reopen_file()
985 .create_options = cifs_create_options(cifs_sb, create_options), in cifs_reopen_file()
1077 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_close() local
1086 if ((cifs_sb->ctx->closetimeo && cinode->oplock == CIFS_CACHE_RHW_FLG) in cifs_close()
1103 &cfile->deferred, cifs_sb->ctx->closetimeo)) in cifs_close()
1108 &cfile->deferred, cifs_sb->ctx->closetimeo); in cifs_close()
1639 struct cifs_sb_info *cifs_sb = CIFS_SB(cfile->dentry->d_sb); in cifs_push_locks() local
1652 ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) in cifs_push_locks()
2016 struct cifs_sb_info *cifs_sb; in cifs_flock() local
2034 cifs_sb = CIFS_FILE_SB(file); in cifs_flock()
2038 ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) in cifs_flock()
2065 struct cifs_sb_info *cifs_sb; in cifs_lock() local
2082 cifs_sb = CIFS_FILE_SB(file); in cifs_lock()
2087 ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) in cifs_lock()
2216 struct cifs_sb_info *cifs_sb = CIFS_SB(cifs_inode->netfs.inode.i_sb); in find_readable_file() local
2219 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER)) in find_readable_file()
2252 struct cifs_sb_info *cifs_sb; in cifs_get_writable_file() local
2272 cifs_sb = CIFS_SB(cifs_inode->netfs.inode.i_sb); in cifs_get_writable_file()
2275 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER)) in cifs_get_writable_file()
2737 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_write_back_from_locked_folio() local
2755 server = cifs_pick_channel(cifs_sb_master_tcon(cifs_sb)->ses); in cifs_write_back_from_locked_folio()
2763 rc = server->ops->wait_mtu_credits(server, cifs_sb->ctx->wsize, in cifs_write_back_from_locked_folio()
3052 struct cifs_sb_info *cifs_sb = CIFS_SB(cfile->dentry->d_sb); in cifs_write_end() local
3056 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RWPIDFORWARD) in cifs_write_end()
3120 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_strict_fsync() local
3142 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOSSYNC)) { in cifs_strict_fsync()
3173 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(file); in cifs_fsync() local
3187 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOSSYNC)) { in cifs_fsync()
3376 struct cifs_sb_info *cifs_sb, struct list_head *wdata_list, in cifs_write_from_iter() argument
3386 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RWPIDFORWARD) in cifs_write_from_iter()
3417 rc = server->ops->wait_mtu_credits(server, cifs_sb->ctx->wsize, in cifs_write_from_iter()
3491 struct cifs_sb_info *cifs_sb; in collect_uncached_write_data() local
3496 cifs_sb = CIFS_SB(dentry->d_sb); in collect_uncached_write_data()
3541 ctx->cfile, cifs_sb, &tmp_list, in collect_uncached_write_data()
3576 struct cifs_sb_info *cifs_sb; in __cifs_writev() local
3584 cifs_sb = CIFS_FILE_SB(file); in __cifs_writev()
3649 cfile, cifs_sb, &ctx->list, ctx); in __cifs_writev()
3746 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_strict_writev() local
3759 && ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) { in cifs_strict_writev()
3914 struct cifs_sb_info *cifs_sb, struct list_head *rdata_list, in cifs_send_async_read() argument
3933 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RWPIDFORWARD) in cifs_send_async_read()
3947 if (cifs_sb->ctx->rsize == 0) in cifs_send_async_read()
3948 cifs_sb->ctx->rsize = in cifs_send_async_read()
3950 cifs_sb->ctx); in cifs_send_async_read()
3952 rc = server->ops->wait_mtu_credits(server, cifs_sb->ctx->rsize, in cifs_send_async_read()
4018 struct cifs_sb_info *cifs_sb; in collect_uncached_read_data() local
4021 cifs_sb = CIFS_SB(ctx->cfile->dentry->d_sb); in collect_uncached_read_data()
4060 rdata->cfile, cifs_sb, in collect_uncached_read_data()
4102 struct cifs_sb_info *cifs_sb; in __cifs_readv() local
4113 cifs_sb = CIFS_FILE_SB(file); in __cifs_readv()
4188 rc = cifs_send_async_read(offset, len, cfile, cifs_sb, &ctx->list, ctx); in __cifs_readv()
4241 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_strict_readv() local
4260 ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) in cifs_strict_readv()
4284 struct cifs_sb_info *cifs_sb; in cifs_read() local
4295 cifs_sb = CIFS_FILE_SB(file); in cifs_read()
4298 rsize = min_t(unsigned int, cifs_sb->ctx->rsize, CIFSMaxBufSize); in cifs_read()
4314 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RWPIDFORWARD) in cifs_read()
4485 struct cifs_sb_info *cifs_sb = CIFS_FILE_SB(ractl->file); in cifs_readahead() local
4504 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RWPIDFORWARD) in cifs_readahead()
4575 if (cifs_sb->ctx->rsize == 0) in cifs_readahead()
4576 cifs_sb->ctx->rsize = in cifs_readahead()
4578 cifs_sb->ctx); in cifs_readahead()
4580 rc = server->ops->wait_mtu_credits(server, cifs_sb->ctx->rsize, in cifs_readahead()
4747 struct cifs_sb_info *cifs_sb; in is_size_safe_to_change() local
4749 cifs_sb = CIFS_SB(cifsInode->netfs.inode.i_sb); in is_size_safe_to_change()
4750 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DIRECT_IO) { in is_size_safe_to_change()
4886 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_oplock_break() local
4899 tlink = cifs_sb_tlink(cifs_sb); in cifs_oplock_break()