Lines Matching refs:sb
32 static struct inode *fat_dget(struct super_block *sb, int i_logstart) in fat_dget() argument
34 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_dget()
42 BUG_ON(i->vfs_inode.i_sb != sb); in fat_dget()
53 static struct inode *fat_ilookup(struct super_block *sb, u64 ino, loff_t i_pos) in fat_ilookup() argument
55 if (MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) in fat_ilookup()
56 return fat_iget(sb, i_pos); in fat_ilookup()
61 return ilookup(sb, ino); in fat_ilookup()
65 static struct inode *__fat_nfs_get_inode(struct super_block *sb, in __fat_nfs_get_inode() argument
68 struct inode *inode = fat_ilookup(sb, ino, i_pos); in __fat_nfs_get_inode()
74 if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) { in __fat_nfs_get_inode()
79 fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset); in __fat_nfs_get_inode()
80 bh = sb_bread(sb, blocknr); in __fat_nfs_get_inode()
82 fat_msg(sb, KERN_ERR, in __fat_nfs_get_inode()
94 inode = fat_build_inode(sb, &de[offset], i_pos); in __fat_nfs_get_inode()
101 static struct inode *fat_nfs_get_inode(struct super_block *sb, in fat_nfs_get_inode() argument
105 return __fat_nfs_get_inode(sb, ino, generation, 0); in fat_nfs_get_inode()
151 static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid, in fat_fh_to_dentry() argument
154 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry()
158 static struct dentry *fat_fh_to_dentry_nostale(struct super_block *sb, in fat_fh_to_dentry_nostale() argument
180 inode = __fat_nfs_get_inode(sb, 0, fid->i_gen, i_pos); in fat_fh_to_dentry_nostale()
189 static struct dentry *fat_fh_to_parent(struct super_block *sb, struct fid *fid, in fat_fh_to_parent() argument
192 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in fat_fh_to_parent()
196 static struct dentry *fat_fh_to_parent_nostale(struct super_block *sb, in fat_fh_to_parent_nostale() argument
211 inode = __fat_nfs_get_inode(sb, 0, fid->parent_i_gen, i_pos); in fat_fh_to_parent_nostale()
223 struct inode *fat_rebuild_parent(struct super_block *sb, int parent_logstart) in fat_rebuild_parent() argument
230 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_rebuild_parent()
232 struct buffer_head *parent_bh = sb_bread(sb, blknr); in fat_rebuild_parent()
234 fat_msg(sb, KERN_ERR, in fat_rebuild_parent()
243 dummy_grand_parent = fat_dget(sb, search_clus); in fat_rebuild_parent()
245 dummy_grand_parent = new_inode(sb); in fat_rebuild_parent()
251 dummy_grand_parent->i_ino = iunique(sb, MSDOS_ROOT_INO); in fat_rebuild_parent()
257 parent = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in fat_rebuild_parent()
273 struct super_block *sb = child_dir->d_sb; in fat_get_parent() local
277 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_get_parent()
281 parent_inode = fat_dget(sb, parent_logstart); in fat_get_parent()
283 parent_inode = fat_rebuild_parent(sb, parent_logstart); in fat_get_parent()