Lines Matching refs:sb

25 	struct super_block *sb = dir->i_sb;  in affs_insert_hash()  local
31 offset = affs_hash_name(sb, AFFS_TAIL(sb, bh)->name + 1, AFFS_TAIL(sb, bh)->name[0]); in affs_insert_hash()
35 dir_bh = affs_bread(sb, dir->i_ino); in affs_insert_hash()
42 dir_bh = affs_bread(sb, hash_ino); in affs_insert_hash()
45 hash_ino = be32_to_cpu(AFFS_TAIL(sb, dir_bh)->hash_chain); in affs_insert_hash()
47 AFFS_TAIL(sb, bh)->parent = cpu_to_be32(dir->i_ino); in affs_insert_hash()
48 AFFS_TAIL(sb, bh)->hash_chain = 0; in affs_insert_hash()
49 affs_fix_checksum(sb, bh); in affs_insert_hash()
54 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino); in affs_insert_hash()
74 struct super_block *sb; in affs_remove_hash() local
80 sb = dir->i_sb; in affs_remove_hash()
82 offset = affs_hash_name(sb, AFFS_TAIL(sb, rem_bh)->name+1, AFFS_TAIL(sb, rem_bh)->name[0]); in affs_remove_hash()
86 bh = affs_bread(sb, dir->i_ino); in affs_remove_hash()
94 ino = AFFS_TAIL(sb, rem_bh)->hash_chain; in affs_remove_hash()
98 AFFS_TAIL(sb, bh)->hash_chain = ino; in affs_remove_hash()
101 AFFS_TAIL(sb, rem_bh)->parent = 0; in affs_remove_hash()
106 bh = affs_bread(sb, hash_ino); in affs_remove_hash()
109 hash_ino = be32_to_cpu(AFFS_TAIL(sb, bh)->hash_chain); in affs_remove_hash()
142 struct super_block *sb = inode->i_sb; in affs_remove_link() local
149 bh = affs_bread(sb, inode->i_ino); in affs_remove_link()
158 link_ino = be32_to_cpu(AFFS_TAIL(sb, bh)->link_chain); in affs_remove_link()
159 link_bh = affs_bread(sb, link_ino); in affs_remove_link()
163 dir = affs_iget(sb, be32_to_cpu(AFFS_TAIL(sb, link_bh)->parent)); in affs_remove_link()
182 memcpy(AFFS_TAIL(sb, bh)->name, AFFS_TAIL(sb, link_bh)->name, 32); in affs_remove_link()
193 link_bh = affs_bread(sb, link_ino); in affs_remove_link()
198 while ((ino = be32_to_cpu(AFFS_TAIL(sb, bh)->link_chain)) != 0) { in affs_remove_link()
200 __be32 ino2 = AFFS_TAIL(sb, link_bh)->link_chain; in affs_remove_link()
201 AFFS_TAIL(sb, bh)->link_chain = ino2; in affs_remove_link()
206 switch (be32_to_cpu(AFFS_TAIL(sb, bh)->stype)) { in affs_remove_link()
211 if (!AFFS_TAIL(sb, bh)->link_chain) in affs_remove_link()
214 affs_free_block(sb, link_ino); in affs_remove_link()
218 bh = affs_bread(sb, ino); in affs_remove_link()
233 struct super_block *sb = inode->i_sb; in affs_empty_dir() local
238 bh = affs_bread(sb, inode->i_ino); in affs_empty_dir()
243 for (size = AFFS_SB(sb)->s_hashsize - 1; size >= 0; size--) in affs_empty_dir()
266 struct super_block *sb; in affs_remove_header() local
272 sb = dir->i_sb; in affs_remove_header()
281 bh = affs_bread(sb, (u32)(long)dentry->d_fsdata); in affs_remove_header()
287 switch (be32_to_cpu(AFFS_TAIL(sb, bh)->stype)) { in affs_remove_header()
336 affs_checksum_block(struct super_block *sb, struct buffer_head *bh) in affs_checksum_block() argument
343 for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--) in affs_checksum_block()
354 affs_fix_checksum(struct super_block *sb, struct buffer_head *bh) in affs_fix_checksum() argument
356 int cnt = sb->s_blocksize / sizeof(__be32); in affs_fix_checksum()
443 affs_error(struct super_block *sb, const char *function, const char *fmt, ...) in affs_error() argument
451 pr_crit("error (device %s): %s(): %pV\n", sb->s_id, function, &vaf); in affs_error()
452 if (!(sb->s_flags & MS_RDONLY)) in affs_error()
454 sb->s_flags |= MS_RDONLY; in affs_error()
459 affs_warning(struct super_block *sb, const char *function, const char *fmt, ...) in affs_warning() argument
467 pr_warn("(device %s): %s(): %pV\n", sb->s_id, function, &vaf); in affs_warning()