Lines Matching refs:cifs_sb
32 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_set_ops() local
37 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DIRECT_IO) { in cifs_set_ops()
38 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) in cifs_set_ops()
42 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) { in cifs_set_ops()
43 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) in cifs_set_ops()
47 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL) in cifs_set_ops()
54 if (cifs_sb_master_tcon(cifs_sb)->ses->server->max_read < in cifs_set_ops()
153 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_fattr_to_inode() local
181 !(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM)) in cifs_fattr_to_inode()
229 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_fill_uniqueid() local
231 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) in cifs_fill_uniqueid()
240 struct cifs_sb_info *cifs_sb) in cifs_unix_basic_to_fattr() argument
300 fattr->cf_uid = cifs_sb->ctx->linux_uid; in cifs_unix_basic_to_fattr()
301 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID)) { in cifs_unix_basic_to_fattr()
310 fattr->cf_gid = cifs_sb->ctx->linux_gid; in cifs_unix_basic_to_fattr()
311 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID)) { in cifs_unix_basic_to_fattr()
333 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_create_junction_fattr() local
339 fattr->cf_uid = cifs_sb->ctx->linux_uid; in cifs_create_junction_fattr()
340 fattr->cf_gid = cifs_sb->ctx->linux_gid; in cifs_create_junction_fattr()
352 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in update_inode_info() local
365 if (unlikely((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) && in update_inode_info()
382 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_get_file_info_unix() local
398 cifs_unix_basic_to_fattr(&fattr, &find_data, cifs_sb); in cifs_get_file_info_unix()
419 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_get_unix_fattr() local
427 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_unix_fattr()
435 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_get_unix_fattr()
440 cifs_unix_basic_to_fattr(fattr, &find_data, cifs_sb); in cifs_get_unix_fattr()
452 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MF_SYMLINKS) { in cifs_get_unix_fattr()
453 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_unix_fattr()
461 cifs_sb, full_path, in cifs_get_unix_fattr()
504 struct cifs_sb_info *cifs_sb, unsigned int xid) in cifs_sfu_type() argument
532 tlink = cifs_sb_tlink(cifs_sb); in cifs_sfu_type()
539 .cifs_sb = cifs_sb, in cifs_sfu_type()
541 .create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR), in cifs_sfu_type()
624 struct cifs_sb_info *cifs_sb, unsigned int xid) in cifs_sfu_mode() argument
633 tlink = cifs_sb_tlink(cifs_sb); in cifs_sfu_mode()
645 cifs_sb); in cifs_sfu_mode()
672 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in smb311_posix_info_to_fattr() local
673 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in smb311_posix_info_to_fattr()
717 sid_to_id(cifs_sb, owner, fattr, SIDOWNER); in smb311_posix_info_to_fattr()
718 sid_to_id(cifs_sb, group, fattr, SIDGROUP); in smb311_posix_info_to_fattr()
731 bool cifs_reparse_point_to_fattr(struct cifs_sb_info *cifs_sb, in cifs_reparse_point_to_fattr() argument
741 fattr->cf_mode |= S_IFCHR | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
746 fattr->cf_mode |= S_IFBLK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
751 fattr->cf_mode |= S_IFIFO | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
755 fattr->cf_mode |= S_IFSOCK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
759 fattr->cf_mode = S_IFLNK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
771 fattr->cf_mode |= S_IFLNK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
775 fattr->cf_mode |= S_IFIFO | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
779 fattr->cf_mode |= S_IFSOCK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
783 fattr->cf_mode |= S_IFCHR | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
787 fattr->cf_mode |= S_IFBLK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
793 fattr->cf_mode = S_IFLNK | cifs_sb->ctx->file_mode; in cifs_reparse_point_to_fattr()
807 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_open_info_to_fattr() local
808 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_open_info_to_fattr()
834 cifs_reparse_point_to_fattr(cifs_sb, fattr, data)) in cifs_open_info_to_fattr()
838 fattr->cf_mode = S_IFDIR | cifs_sb->ctx->dir_mode; in cifs_open_info_to_fattr()
847 fattr->cf_mode = S_IFREG | cifs_sb->ctx->file_mode; in cifs_open_info_to_fattr()
874 fattr->cf_uid = cifs_sb->ctx->linux_uid; in cifs_open_info_to_fattr()
875 fattr->cf_gid = cifs_sb->ctx->linux_gid; in cifs_open_info_to_fattr()
972 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_backup_query_path_info() local
984 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) in cifs_backup_query_path_info()
994 cifs_sb, NULL, flags, &info, false); in cifs_backup_query_path_info()
1008 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_set_fattr_ino() local
1012 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)) { in cifs_set_fattr_ino()
1024 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path, in cifs_set_fattr_ino()
1035 cifs_autodisable_serverino(cifs_sb); in cifs_set_fattr_ino()
1067 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in reparse_info_to_fattr() local
1074 rc = server->ops->query_reparse_point(xid, tcon, cifs_sb, in reparse_info_to_fattr()
1086 cifs_sb, full_path, in reparse_info_to_fattr()
1098 rc = server->ops->parse_reparse_point(cifs_sb, in reparse_info_to_fattr()
1121 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_get_fattr() local
1126 tlink = cifs_sb_tlink(cifs_sb); in cifs_get_fattr()
1137 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in cifs_get_fattr()
1175 if (backup_cred(cifs_sb) && is_smb1_server(server)) { in cifs_get_fattr()
1192 cifs_dir_info_to_fattr(fattr, fdi, cifs_sb); in cifs_get_fattr()
1223 (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL)) { in cifs_get_fattr()
1224 tmprc = cifs_sfu_type(fattr, full_path, cifs_sb, xid); in cifs_get_fattr()
1230 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID) { in cifs_get_fattr()
1231 rc = cifs_acl_to_fattr(cifs_sb, fattr, *inode, in cifs_get_fattr()
1240 } else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) { in cifs_get_fattr()
1241 rc = cifs_acl_to_fattr(cifs_sb, fattr, *inode, in cifs_get_fattr()
1253 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) in cifs_get_fattr()
1254 cifs_sfu_mode(fattr, full_path, cifs_sb, xid); in cifs_get_fattr()
1257 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MF_SYMLINKS) { in cifs_get_fattr()
1258 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_fattr()
1299 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in smb311_posix_get_fattr() local
1306 tlink = cifs_sb_tlink(cifs_sb); in smb311_posix_get_fattr()
1315 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb, in smb311_posix_get_fattr()
1349 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MF_SYMLINKS) { in smb311_posix_get_fattr()
1350 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in smb311_posix_get_fattr()
1484 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_root_iget() local
1486 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_root_iget()
1493 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH) in cifs_root_iget()
1494 && cifs_sb->prepath) { in cifs_root_iget()
1495 len = strlen(cifs_sb->prepath); in cifs_root_iget()
1500 memcpy(path+1, cifs_sb->prepath, len); in cifs_root_iget()
1517 convert_delimiter(path, CIFS_DIR_SEP(cifs_sb)); in cifs_root_iget()
1527 cifs_autodisable_serverino(cifs_sb); in cifs_root_iget()
1544 inode->i_uid = cifs_sb->ctx->linux_uid; in cifs_root_iget()
1545 inode->i_gid = cifs_sb->ctx->linux_gid; in cifs_root_iget()
1564 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_set_file_info() local
1571 server = cifs_sb_master_tcon(cifs_sb)->ses->server; in cifs_set_file_info()
1626 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in cifs_rename_pending_delete() local
1632 tlink = cifs_sb_tlink(cifs_sb); in cifs_rename_pending_delete()
1648 .cifs_sb = cifs_sb, in cifs_rename_pending_delete()
1650 .create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR), in cifs_rename_pending_delete()
1689 cifs_sb->local_nls, in cifs_rename_pending_delete()
1690 cifs_remap(cifs_sb)); in cifs_rename_pending_delete()
1731 cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_rename_pending_delete()
1770 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); in cifs_unlink() local
1779 if (unlikely(cifs_forced_shutdown(cifs_sb))) in cifs_unlink()
1782 tlink = cifs_sb_tlink(cifs_sb); in cifs_unlink()
1809 SMB_POSIX_UNLINK_FILE_TARGET, cifs_sb->local_nls, in cifs_unlink()
1810 cifs_remap(cifs_sb)); in cifs_unlink()
1823 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb); in cifs_unlink()
1886 const char *full_path, struct cifs_sb_info *cifs_sb, argument
1937 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID) {
1948 cifs_sb->local_nls,
1949 cifs_remap(cifs_sb));
1955 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) &&
1957 server->ops->mkdir_setinfo(inode, full_path, cifs_sb,
1959 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM)
1962 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID) {
1977 const char *full_path, struct cifs_sb_info *cifs_sb, argument
1995 cifs_sb->local_nls, cifs_remap(cifs_sb));
2012 cifs_unix_basic_to_fattr(&fattr, info, cifs_sb);
2033 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2044 struct cifs_sb_info *cifs_sb; local
2054 cifs_sb = CIFS_SB(inode->i_sb);
2055 if (unlikely(cifs_forced_shutdown(cifs_sb)))
2057 tlink = cifs_sb_tlink(cifs_sb);
2075 cifs_sb);
2083 rc = cifs_posix_mkdir(inode, direntry, mode, full_path, cifs_sb,
2096 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2104 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2122 struct cifs_sb_info *cifs_sb; local
2140 cifs_sb = CIFS_SB(inode->i_sb);
2141 if (unlikely(cifs_forced_shutdown(cifs_sb))) {
2146 tlink = cifs_sb_tlink(cifs_sb);
2166 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2201 struct cifs_sb_info *cifs_sb = CIFS_SB(from_dentry->d_sb); local
2212 tlink = cifs_sb_tlink(cifs_sb);
2223 from_path, to_path, cifs_sb);
2244 .cifs_sb = cifs_sb,
2247 .create_options = cifs_create_options(cifs_sb, CREATE_NOT_DIR),
2257 cifs_sb->local_nls, cifs_remap(cifs_sb));
2275 struct cifs_sb_info *cifs_sb; local
2289 cifs_sb = CIFS_SB(source_dir->i_sb);
2290 if (unlikely(cifs_forced_shutdown(cifs_sb)))
2293 tlink = cifs_sb_tlink(cifs_sb);
2355 cifs_sb->local_nls,
2356 cifs_remap(cifs_sb));
2362 cifs_sb->local_nls,
2363 cifs_remap(cifs_sb));
2409 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
2410 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2437 if (!cifs_sb->ctx->acdirmax)
2440 cifs_i->time + cifs_sb->ctx->acdirmax))
2443 if (!cifs_sb->ctx->acregmax)
2446 cifs_i->time + cifs_sb->ctx->acregmax))
2451 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) &&
2496 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
2509 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RW_CACHE)
2628 struct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb); local
2629 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2666 stat->blksize = cifs_sb->ctx->bsize;
2687 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER) &&
2688 !(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) &&
2690 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID))
2692 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID))
2702 struct cifs_sb_info *cifs_sb = CIFS_SB(cifs_i->netfs.inode.i_sb); local
2703 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2708 if (unlikely(cifs_forced_shutdown(cifs_sb)))
2775 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
2807 tlink = cifs_sb_tlink(cifs_sb);
2821 attrs->ia_size, cifs_sb, false);
2866 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
2877 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM)
2966 tlink = cifs_sb_tlink(cifs_sb);
2973 cifs_sb->local_nls,
2974 cifs_remap(cifs_sb));
3013 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); local
3028 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM)
3062 !(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOSSYNC)) {
3088 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) ||
3089 (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID)) {
3101 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID))
3111 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL) ||
3112 (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MODE_FROM_SID)) {
3134 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM) == 0)
3145 if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM)) {
3149 cifs_sb->ctx->dir_mode;
3152 cifs_sb->ctx->file_mode;
3154 } else if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM)) {
3199 struct cifs_sb_info *cifs_sb = CIFS_SB(direntry->d_sb); local
3202 struct cifs_tcon *pTcon = cifs_sb_master_tcon(cifs_sb);
3205 if (unlikely(cifs_forced_shutdown(cifs_sb)))