Lines Matching refs:sb
154 static struct inode *exofs_alloc_inode(struct super_block *sb) in exofs_alloc_inode() argument
363 static int exofs_sync_fs(struct super_block *sb, int wait) in exofs_sync_fs() argument
376 sbi = sb->s_fs_info; in exofs_sync_fs()
396 fscb->s_magic = cpu_to_le16(sb->s_magic); in exofs_sync_fs()
444 static void exofs_put_super(struct super_block *sb) in exofs_put_super() argument
447 struct exofs_sb_info *sbi = sb->s_fs_info; in exofs_put_super()
469 sb->s_fs_info = NULL; in exofs_put_super()
705 static int exofs_fill_super(struct super_block *sb, void *data, int silent) in exofs_fill_super() argument
752 memset(sb->s_id, 0, sizeof(sb->s_id)); in exofs_fill_super()
753 strcpy(sb->s_id, "exofs"); in exofs_fill_super()
754 sb->s_blocksize = EXOFS_BLKSIZE; in exofs_fill_super()
755 sb->s_blocksize_bits = EXOFS_BLKSHIFT; in exofs_fill_super()
756 sb->s_maxbytes = MAX_LFS_FILESIZE; in exofs_fill_super()
757 sb->s_max_links = EXOFS_LINK_MAX; in exofs_fill_super()
759 sb->s_bdev = NULL; in exofs_fill_super()
760 sb->s_dev = 0; in exofs_fill_super()
770 sb->s_magic = le16_to_cpu(fscb.s_magic); in exofs_fill_super()
776 if (sb->s_magic != EXOFS_SUPER_MAGIC) { in exofs_fill_super()
813 sb->s_bdi = &sbi->bdi; in exofs_fill_super()
814 sb->s_fs_info = sbi; in exofs_fill_super()
815 sb->s_op = &exofs_sops; in exofs_fill_super()
816 sb->s_export_op = &exofs_export_ops; in exofs_fill_super()
817 root = exofs_iget(sb, EXOFS_ROOT_ID - EXOFS_OBJ_OFF); in exofs_fill_super()
823 sb->s_root = d_make_root(root); in exofs_fill_super()
824 if (!sb->s_root) { in exofs_fill_super()
831 dput(sb->s_root); in exofs_fill_super()
832 sb->s_root = NULL; in exofs_fill_super()
842 dput(sb->s_root); in exofs_fill_super()
843 sb->s_root = NULL; in exofs_fill_super()
885 struct super_block *sb = dentry->d_sb; in exofs_statfs() local
886 struct exofs_sb_info *sbi = sb->s_fs_info; in exofs_statfs()
964 static struct inode *exofs_nfs_get_inode(struct super_block *sb, in exofs_nfs_get_inode() argument
969 inode = exofs_iget(sb, ino); in exofs_nfs_get_inode()
980 static struct dentry *exofs_fh_to_dentry(struct super_block *sb, in exofs_fh_to_dentry() argument
983 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in exofs_fh_to_dentry()
987 static struct dentry *exofs_fh_to_parent(struct super_block *sb, in exofs_fh_to_parent() argument
990 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in exofs_fh_to_parent()