Searched refs:AFFS_HEAD (Results 1 - 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/fs/affs/ |
H A D | amigaffs.c | 42 hash_ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[offset]); in affs_insert_hash() 55 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino); in affs_insert_hash() 94 hash_ino = be32_to_cpu(AFFS_HEAD(bh)->table[offset]); in affs_remove_hash() 99 AFFS_HEAD(bh)->table[offset] = ino; in affs_remove_hash() 247 if (AFFS_HEAD(bh)->table[size]) in affs_empty_dir()
|
H A D | inode.c | 43 if (affs_checksum_block(sb, bh) || be32_to_cpu(AFFS_HEAD(bh)->ptype) != T_SHORT) { in affs_iget() 46 AFFS_HEAD(bh)->ptype, block); in affs_iget() 144 inode->i_size = strlen((char *)AFFS_HEAD(bh)->table); in affs_iget() 384 AFFS_HEAD(bh)->ptype = cpu_to_be32(T_SHORT); in affs_add_entry() 385 AFFS_HEAD(bh)->key = cpu_to_be32(bh->b_blocknr); in affs_add_entry()
|
H A D | dir.c | 89 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() 106 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir()
|
H A D | file.c | 135 AFFS_HEAD(new_bh)->ptype = cpu_to_be32(T_LIST); in affs_alloc_extblock() 136 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 337 AFFS_HEAD(ext_bh)->block_count = cpu_to_be32(block + 1); in affs_get_block() 343 u32 tmp = be32_to_cpu(AFFS_HEAD(ext_bh)->first_data); in affs_get_block() 346 AFFS_HEAD(ext_bh)->first_data = cpu_to_be32(blocknr); in affs_get_block() 926 AFFS_HEAD(ext_bh)->first_data = 0; in affs_truncate() 927 AFFS_HEAD(ext_bh)->block_count = cpu_to_be32(i); in affs_truncate()
|
H A D | affs.h | 19 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) 21 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data) macro
|
H A D | namei.c | 183 key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)]); in affs_find_entry() 342 p = (char *)AFFS_HEAD(bh)->table; in affs_symlink()
|
/kernel/linux/linux-6.6/fs/affs/ |
H A D | amigaffs.c | 42 hash_ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[offset]); in affs_insert_hash() 55 AFFS_HEAD(dir_bh)->table[offset] = cpu_to_be32(ino); in affs_insert_hash() 94 hash_ino = be32_to_cpu(AFFS_HEAD(bh)->table[offset]); in affs_remove_hash() 99 AFFS_HEAD(bh)->table[offset] = ino; in affs_remove_hash() 247 if (AFFS_HEAD(bh)->table[size]) in affs_empty_dir()
|
H A D | inode.c | 43 if (affs_checksum_block(sb, bh) || be32_to_cpu(AFFS_HEAD(bh)->ptype) != T_SHORT) { in affs_iget() 46 AFFS_HEAD(bh)->ptype, block); in affs_iget() 144 inode->i_size = strlen((char *)AFFS_HEAD(bh)->table); in affs_iget() 385 AFFS_HEAD(bh)->ptype = cpu_to_be32(T_SHORT); in affs_add_entry() 386 AFFS_HEAD(bh)->key = cpu_to_be32(bh->b_blocknr); in affs_add_entry()
|
H A D | dir.c | 89 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir() 106 ino = be32_to_cpu(AFFS_HEAD(dir_bh)->table[hash_pos]); in affs_readdir()
|
H A D | file.c | 136 AFFS_HEAD(new_bh)->ptype = cpu_to_be32(T_LIST); in affs_alloc_extblock() 137 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 338 AFFS_HEAD(ext_bh)->block_count = cpu_to_be32(block + 1); in affs_get_block() 344 u32 tmp = be32_to_cpu(AFFS_HEAD(ext_bh)->first_data); in affs_get_block() 347 AFFS_HEAD(ext_bh)->first_data = cpu_to_be32(blocknr); in affs_get_block() 930 AFFS_HEAD(ext_bh)->first_data = 0; in affs_truncate() 931 AFFS_HEAD(ext_bh)->block_count = cpu_to_be32(i); in affs_truncate()
|
H A D | affs.h | 19 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) 21 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data) macro
|
H A D | namei.c | 183 key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)]); in affs_find_entry() 345 p = (char *)AFFS_HEAD(bh)->table; in affs_symlink()
|
Completed in 9 milliseconds