Searched refs:EXT2_SB (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/fs/ext2/ |
D | ext2.h | 169 static inline struct ext2_sb_info *EXT2_SB(struct super_block *sb) in EXT2_SB() function 184 #define EXT2_ADDR_PER_BLOCK_BITS(s) (EXT2_SB(s)->s_addr_per_block_bits) 185 #define EXT2_INODE_SIZE(s) (EXT2_SB(s)->s_inode_size) 186 #define EXT2_FIRST_INO(s) (EXT2_SB(s)->s_first_ino) 206 #define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->s_blocks_per_group) 207 #define EXT2_DESC_PER_BLOCK(s) (EXT2_SB(s)->s_desc_per_block) 208 #define EXT2_INODES_PER_GROUP(s) (EXT2_SB(s)->s_inodes_per_group) 209 #define EXT2_DESC_PER_BLOCK_BITS(s) (EXT2_SB(s)->s_desc_per_block_bits) 385 #define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ 507 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) [all …]
|
D | ialloc.c | 78 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode() 82 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode() 83 percpu_counter_inc(&EXT2_SB(sb)->s_freeinodes_counter); in ext2_release_inode() 85 percpu_counter_dec(&EXT2_SB(sb)->s_dirs_counter); in ext2_release_inode() 126 es = EXT2_SB(sb)->s_es; in ext2_free_inode() 142 if (!ext2_clear_bit_atomic(sb_bgl_lock(EXT2_SB(sb), block_group), in ext2_free_inode() 201 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_dir() 254 struct ext2_sb_info *sbi = EXT2_SB(sb); in find_group_orlov() 362 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_other() 440 sbi = EXT2_SB(sb); in ext2_new_inode() [all …]
|
D | balloc.c | 46 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_get_group_desc() 101 offset + EXT2_SB(sb)->s_itb_per_group, in ext2_valid_block_bitmap() 103 if (next_zero_bit >= offset + EXT2_SB(sb)->s_itb_per_group) in ext2_valid_block_bitmap() 165 struct ext2_sb_info *sbi = EXT2_SB(sb); in group_adjust_blocks() 331 struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root; in ext2_rsv_window_add() 373 rb_erase(&rsv->rsv_node, &EXT2_SB(sb)->s_rsv_window_root); in rsv_window_remove() 455 spinlock_t *rsv_lock = &EXT2_SB(inode->i_sb)->s_rsv_window_lock; in ext2_discard_reservation() 485 struct ext2_sb_info * sbi = EXT2_SB(sb); in ext2_free_blocks() 700 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate() 870 struct rb_root *fs_rsv_root = &EXT2_SB(sb)->s_rsv_window_root; in alloc_new_reservation() [all …]
|
D | super.c | 54 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() 105 struct ext2_super_block *es = EXT2_SB(sb)->s_es; in ext2_update_dynamic_rev() 148 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_put_super() 239 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_show_options() 366 if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) in ext2_nfs_get_inode() 636 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_setup_super() 684 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_check_descriptors() 791 struct ext2_sb_info *sbi = EXT2_SB(sb); in descriptor_loc() 1227 struct buffer_head *sbh = EXT2_SB(sb)->s_sbh; in ext2_clear_super_error() 1249 spin_lock(&EXT2_SB(sb)->s_lock); in ext2_sync_super() [all …]
|
D | inode.c | 812 struct ext2_sb_info *sbi = EXT2_SB(inode->i_sb); in ext2_iomap_begin() 955 struct ext2_sb_info *sbi = EXT2_SB(mapping->host->i_sb); in ext2_dax_writepages() 1316 ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) in ext2_get_inode() 1440 !ext2_data_block_valid(EXT2_SB(sb), ei->i_file_acl, 1)) { in ext2_iget() 1522 memset(raw_inode, 0, EXT2_SB(sb)->s_inode_size); in __ext2_write_inode() 1565 EXT2_SB(sb)->s_es->s_rev_level == in __ext2_write_inode() 1570 spin_lock(&EXT2_SB(sb)->s_lock); in __ext2_write_inode() 1574 spin_unlock(&EXT2_SB(sb)->s_lock); in __ext2_write_inode() 1575 ext2_sync_super(sb, EXT2_SB(sb)->s_es, 1); in __ext2_write_inode()
|
D | xattr.c | 122 #define EA_BLOCK_CACHE(inode) (EXT2_SB(inode->i_sb)->s_ea_block_cache) 386 spin_lock(&EXT2_SB(sb)->s_lock); in ext2_xattr_update_super_block() 389 spin_unlock(&EXT2_SB(sb)->s_lock); in ext2_xattr_update_super_block() 390 mark_buffer_dirty(EXT2_SB(sb)->s_sbh); in ext2_xattr_update_super_block() 820 struct ext2_sb_info *sbi = EXT2_SB(inode->i_sb); in ext2_xattr_delete_inode()
|
D | dir.c | 104 u32 max_inumber = le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count); in ext2_check_page()
|