Searched refs:EXT2_SB (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/fs/ext2/ |
D | ext2.h | 172 static inline struct ext2_sb_info *EXT2_SB(struct super_block *sb) in EXT2_SB() function 186 #define EXT2_ADDR_PER_BLOCK_BITS(s) (EXT2_SB(s)->s_addr_per_block_bits) 187 #define EXT2_INODE_SIZE(s) (EXT2_SB(s)->s_inode_size) 188 #define EXT2_FIRST_INO(s) (EXT2_SB(s)->s_first_ino) 196 #define EXT2_FRAG_SIZE(s) (EXT2_SB(s)->s_frag_size) 197 #define EXT2_FRAGS_PER_BLOCK(s) (EXT2_SB(s)->s_frags_per_block) 217 #define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->s_blocks_per_group) 218 #define EXT2_DESC_PER_BLOCK(s) (EXT2_SB(s)->s_desc_per_block) 219 #define EXT2_INODES_PER_GROUP(s) (EXT2_SB(s)->s_inodes_per_group) 220 #define EXT2_DESC_PER_BLOCK_BITS(s) (EXT2_SB(s)->s_desc_per_block_bits) [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() 365 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_other() 443 sbi = EXT2_SB(sb); in ext2_new_inode() [all …]
|
D | balloc.c | 48 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_get_group_desc() 103 offset + EXT2_SB(sb)->s_itb_per_group, in ext2_valid_block_bitmap() 105 if (next_zero_bit >= offset + EXT2_SB(sb)->s_itb_per_group) in ext2_valid_block_bitmap() 167 struct ext2_sb_info *sbi = EXT2_SB(sb); in group_adjust_blocks() 333 struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root; in ext2_rsv_window_add() 375 rb_erase(&rsv->rsv_node, &EXT2_SB(sb)->s_rsv_window_root); in rsv_window_remove() 457 spinlock_t *rsv_lock = &EXT2_SB(inode->i_sb)->s_rsv_window_lock; in ext2_discard_reservation() 487 struct ext2_sb_info * sbi = EXT2_SB(sb); in ext2_free_blocks() 702 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate() 881 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() 685 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_check_descriptors() 792 struct ext2_sb_info *sbi = EXT2_SB(sb); in descriptor_loc() 1235 struct buffer_head *sbh = EXT2_SB(sb)->s_sbh; in ext2_clear_super_error() 1257 spin_lock(&EXT2_SB(sb)->s_lock); in ext2_sync_super() [all …]
|
D | inode.c | 808 struct ext2_sb_info *sbi = EXT2_SB(inode->i_sb); in ext2_iomap_begin() 941 struct ext2_sb_info *sbi = EXT2_SB(mapping->host->i_sb); in ext2_dax_writepages() 1304 ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) in ext2_get_inode() 1428 !ext2_data_block_valid(EXT2_SB(sb), ei->i_file_acl, 1)) { in ext2_iget() 1510 memset(raw_inode, 0, EXT2_SB(sb)->s_inode_size); in __ext2_write_inode() 1553 EXT2_SB(sb)->s_es->s_rev_level == in __ext2_write_inode() 1558 spin_lock(&EXT2_SB(sb)->s_lock); in __ext2_write_inode() 1562 spin_unlock(&EXT2_SB(sb)->s_lock); in __ext2_write_inode() 1563 ext2_sync_super(sb, EXT2_SB(sb)->s_es, 1); in __ext2_write_inode()
|
D | xattr.c | 126 #define EA_BLOCK_CACHE(inode) (EXT2_SB(inode->i_sb)->s_ea_block_cache) 387 spin_lock(&EXT2_SB(sb)->s_lock); in ext2_xattr_update_super_block() 390 spin_unlock(&EXT2_SB(sb)->s_lock); in ext2_xattr_update_super_block() 391 mark_buffer_dirty(EXT2_SB(sb)->s_sbh); in ext2_xattr_update_super_block() 819 struct ext2_sb_info *sbi = EXT2_SB(inode->i_sb); in ext2_xattr_delete_inode()
|
D | dir.c | 114 u32 max_inumber = le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count); in ext2_check_page()
|