• Home
  • Raw
  • Download

Lines Matching refs:sb

134 static inline struct shmem_sb_info *SHMEM_SB(struct super_block *sb)  in SHMEM_SB()  argument
136 return sb->s_fs_info; in SHMEM_SB()
199 static int shmem_reserve_inode(struct super_block *sb) in shmem_reserve_inode() argument
201 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_reserve_inode()
214 static void shmem_free_inode(struct super_block *sb) in shmem_free_inode() argument
216 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_free_inode()
1414 static struct inode *shmem_get_inode(struct super_block *sb, const struct inode *dir, in shmem_get_inode() argument
1419 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_get_inode()
1421 if (shmem_reserve_inode(sb)) in shmem_get_inode()
1424 inode = new_inode(sb); in shmem_get_inode()
1470 shmem_free_inode(sb); in shmem_get_inode()
2696 static struct dentry *shmem_fh_to_dentry(struct super_block *sb, in shmem_fh_to_dentry() argument
2709 inode = ilookup5(sb, (unsigned long)(inum + fid->raw[0]), in shmem_fh_to_dentry()
2859 static int shmem_remount_fs(struct super_block *sb, int *flags, char *data) in shmem_remount_fs() argument
2861 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_remount_fs()
2996 static void shmem_put_super(struct super_block *sb) in shmem_put_super() argument
2998 struct shmem_sb_info *sbinfo = SHMEM_SB(sb); in shmem_put_super()
3003 sb->s_fs_info = NULL; in shmem_put_super()
3006 int shmem_fill_super(struct super_block *sb, void *data, int silent) in shmem_fill_super() argument
3021 sb->s_fs_info = sbinfo; in shmem_fill_super()
3029 if (!(sb->s_flags & MS_KERNMOUNT)) { in shmem_fill_super()
3037 sb->s_flags |= MS_NOUSER; in shmem_fill_super()
3039 sb->s_export_op = &shmem_export_ops; in shmem_fill_super()
3040 sb->s_flags |= MS_NOSEC; in shmem_fill_super()
3042 sb->s_flags |= MS_NOUSER; in shmem_fill_super()
3050 sb->s_maxbytes = MAX_LFS_FILESIZE; in shmem_fill_super()
3051 sb->s_blocksize = PAGE_CACHE_SIZE; in shmem_fill_super()
3052 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in shmem_fill_super()
3053 sb->s_magic = TMPFS_MAGIC; in shmem_fill_super()
3054 sb->s_op = &shmem_ops; in shmem_fill_super()
3055 sb->s_time_gran = 1; in shmem_fill_super()
3057 sb->s_xattr = shmem_xattr_handlers; in shmem_fill_super()
3060 sb->s_flags |= MS_POSIXACL; in shmem_fill_super()
3063 inode = shmem_get_inode(sb, NULL, S_IFDIR | sbinfo->mode, 0, VM_NORESERVE); in shmem_fill_super()
3068 sb->s_root = d_make_root(inode); in shmem_fill_super()
3069 if (!sb->s_root) in shmem_fill_super()
3074 shmem_put_super(sb); in shmem_fill_super()
3080 static struct inode *shmem_alloc_inode(struct super_block *sb) in shmem_alloc_inode() argument
3319 #define shmem_get_inode(sb, dir, mode, dev, flags) ramfs_get_inode(sb, dir, mode, dev) argument
3337 struct super_block *sb; in __shmem_file_setup() local
3353 sb = shm_mnt->mnt_sb; in __shmem_file_setup()
3355 path.dentry = d_alloc_pseudo(sb, &this); in __shmem_file_setup()
3361 inode = shmem_get_inode(sb, NULL, S_IFREG | S_IRWXUGO, 0, flags); in __shmem_file_setup()