Lines Matching refs:sb

81 static inline struct binderfs_info *BINDERFS_SB(const struct super_block *sb)  in BINDERFS_SB()  argument
83 return sb->s_fs_info; in BINDERFS_SB()
121 struct super_block *sb = ref_inode->i_sb; in binderfs_binder_device_create() local
122 struct binderfs_info *info = sb->s_fs_info; in binderfs_binder_device_create()
150 inode = new_inode(sb); in binderfs_binder_device_create()
183 root = sb->s_root; in binderfs_binder_device_create()
393 static int binderfs_binder_ctl_create(struct super_block *sb) in binderfs_binder_ctl_create() argument
399 struct dentry *root = sb->s_root; in binderfs_binder_ctl_create()
400 struct binderfs_info *info = sb->s_fs_info; in binderfs_binder_ctl_create()
418 inode = new_inode(sb); in binderfs_binder_ctl_create()
469 static struct inode *binderfs_make_inode(struct super_block *sb, int mode) in binderfs_make_inode() argument
473 ret = new_inode(sb); in binderfs_make_inode()
475 ret->i_ino = iunique(sb, BINDERFS_MAX_MINOR + INODE_OFFSET); in binderfs_make_inode()
506 struct super_block *sb; in binderfs_create_file() local
515 sb = parent_inode->i_sb; in binderfs_create_file()
516 new_inode = binderfs_make_inode(sb, S_IFREG | 0444); in binderfs_create_file()
538 struct super_block *sb; in binderfs_create_dir() local
547 sb = parent_inode->i_sb; in binderfs_create_dir()
548 new_inode = binderfs_make_inode(sb, S_IFDIR | 0755); in binderfs_create_dir()
578 static int init_binder_features(struct super_block *sb) in init_binder_features() argument
582 dir = binderfs_create_dir(sb->s_root, "features"); in init_binder_features()
607 static int init_binder_logs(struct super_block *sb) in init_binder_logs() argument
614 binder_logs_root_dir = binderfs_create_dir(sb->s_root, in init_binder_logs()
637 info = sb->s_fs_info; in init_binder_logs()
644 static int binderfs_fill_super(struct super_block *sb, struct fs_context *fc) in binderfs_fill_super() argument
654 sb->s_blocksize = PAGE_SIZE; in binderfs_fill_super()
655 sb->s_blocksize_bits = PAGE_SHIFT; in binderfs_fill_super()
668 sb->s_iflags &= ~SB_I_NODEV; in binderfs_fill_super()
669 sb->s_iflags |= SB_I_NOEXEC; in binderfs_fill_super()
670 sb->s_magic = BINDERFS_SUPER_MAGIC; in binderfs_fill_super()
671 sb->s_op = &binderfs_super_ops; in binderfs_fill_super()
672 sb->s_time_gran = 1; in binderfs_fill_super()
674 sb->s_fs_info = kzalloc(sizeof(struct binderfs_info), GFP_KERNEL); in binderfs_fill_super()
675 if (!sb->s_fs_info) in binderfs_fill_super()
677 info = sb->s_fs_info; in binderfs_fill_super()
681 info->root_gid = make_kgid(sb->s_user_ns, 0); in binderfs_fill_super()
684 info->root_uid = make_kuid(sb->s_user_ns, 0); in binderfs_fill_super()
690 inode = new_inode(sb); in binderfs_fill_super()
701 sb->s_root = d_make_root(inode); in binderfs_fill_super()
702 if (!sb->s_root) in binderfs_fill_super()
705 ret = binderfs_binder_ctl_create(sb); in binderfs_fill_super()
720 ret = init_binder_features(sb); in binderfs_fill_super()
725 return init_binder_logs(sb); in binderfs_fill_super()
766 static void binderfs_kill_super(struct super_block *sb) in binderfs_kill_super() argument
768 struct binderfs_info *info = sb->s_fs_info; in binderfs_kill_super()
774 kill_litter_super(sb); in binderfs_kill_super()