Lines Matching refs:sb

169 cifs_sb_active(struct super_block *sb)
171 struct cifs_sb_info *server = CIFS_SB(sb);
174 atomic_inc(&sb->s_active);
178 cifs_sb_deactive(struct super_block *sb)
180 struct cifs_sb_info *server = CIFS_SB(sb);
183 deactivate_super(sb);
187 cifs_read_super(struct super_block *sb)
195 cifs_sb = CIFS_SB(sb);
199 sb->s_flags |= SB_POSIXACL;
202 sb->s_flags |= SB_RDONLY;
205 sb->s_maxbytes = MAX_LFS_FILESIZE;
207 sb->s_maxbytes = MAX_NON_LFS;
220 sb->s_time_gran = 1000000000; /* 1 second is max allowed gran */
222 sb->s_time_min = ts.tv_sec;
225 sb->s_time_max = ts.tv_sec;
231 sb->s_time_gran = 100;
233 sb->s_time_min = ts.tv_sec;
235 sb->s_time_max = ts.tv_sec;
238 sb->s_magic = CIFS_SUPER_MAGIC;
239 sb->s_op = &cifs_super_ops;
240 sb->s_xattr = cifs_xattr_handlers;
241 rc = super_setup_bdi(sb);
249 sb->s_bdi->ra_pages = cifs_sb->ctx->rasize / PAGE_SIZE;
251 sb->s_bdi->ra_pages = 2 * (cifs_sb->ctx->rsize / PAGE_SIZE);
253 sb->s_blocksize = CIFS_MAX_MSGSIZE;
254 sb->s_blocksize_bits = 14; /* default 2**14 = CIFS_MAX_MSGSIZE */
255 inode = cifs_root_iget(sb);
263 sb->s_d_op = &cifs_ci_dentry_ops;
265 sb->s_d_op = &cifs_dentry_ops;
267 sb->s_root = d_make_root(inode);
268 if (!sb->s_root) {
276 sb->s_export_op = &cifs_export_ops;
287 static void cifs_kill_sb(struct super_block *sb)
289 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
293 * before we kill the sb.
303 kill_anon_super(sb);
310 struct super_block *sb = dentry->d_sb;
311 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
383 cifs_alloc_inode(struct super_block *sb)
386 cifs_inode = alloc_inode_sb(sb, cifs_inode_cachep, GFP_KERNEL);
735 static void cifs_umount_begin(struct super_block *sb)
737 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
780 static int cifs_freeze(struct super_block *sb)
782 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
842 cifs_get_root(struct smb3_fs_context *ctx, struct super_block *sb)
845 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
851 return dget(sb->s_root);
861 dentry = dget(sb->s_root);
892 static int cifs_set_super(struct super_block *sb, void *data)
895 sb->s_fs_info = mnt_data->cifs_sb;
896 return set_anon_super(sb, NULL);
905 struct super_block *sb;
953 sb = sget(fs_type, cifs_match_super, cifs_set_super, flags, &mnt_data);
954 if (IS_ERR(sb)) {
956 return ERR_CAST(sb);
959 if (sb->s_root) {
964 rc = cifs_read_super(sb);
970 sb->s_flags |= SB_ACTIVE;
973 root = cifs_get_root(cifs_sb ? cifs_sb->ctx : old_ctx, sb);
984 deactivate_locked_super(sb);