Lines Matching refs:sb
54 affs_get_toupper(struct super_block *sb) in affs_get_toupper() argument
56 return affs_test_opt(AFFS_SB(sb)->s_flags, SF_INTL) ? in affs_get_toupper()
175 affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len) in affs_hash_name() argument
177 toupper_t toupper = affs_get_toupper(sb); in affs_hash_name()
184 return hash % AFFS_SB(sb)->s_hashsize; in affs_hash_name()
190 struct super_block *sb = dir->i_sb; in affs_find_entry() local
192 toupper_t toupper = affs_get_toupper(sb); in affs_find_entry()
197 bh = affs_bread(sb, dir->i_ino); in affs_find_entry()
201 …key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)… in affs_find_entry()
207 bh = affs_bread(sb, key); in affs_find_entry()
210 if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, toupper)) in affs_find_entry()
212 key = be32_to_cpu(AFFS_TAIL(sb, bh)->hash_chain); in affs_find_entry()
219 struct super_block *sb = dir->i_sb; in affs_lookup() local
235 switch (be32_to_cpu(AFFS_TAIL(sb, bh)->stype)) { in affs_lookup()
239 ino = be32_to_cpu(AFFS_TAIL(sb, bh)->original); in affs_lookup()
242 inode = affs_iget(sb, ino); in affs_lookup()
262 struct super_block *sb = dir->i_sb; in affs_create() local
279 inode->i_mapping->a_ops = affs_test_opt(AFFS_SB(sb)->s_flags, SF_OFS) ? in affs_create()
331 struct super_block *sb = dir->i_sb; in affs_symlink() local
341 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1; in affs_symlink()
352 bh = affs_bread(sb, inode->i_ino); in affs_symlink()
359 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_symlink()
418 struct super_block *sb = old_dir->i_sb; in affs_rename() local
439 bh = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_rename()
451 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
452 affs_fix_checksum(sb, bh); in affs_rename()