Searched refs:EXT2_SB (Results 1 – 7 of 7) sorted by relevance
/linux-4.19.296/fs/ext2/ |
D | ext2.h | 166 static inline struct ext2_sb_info *EXT2_SB(struct super_block *sb) in EXT2_SB() function 181 #define EXT2_ADDR_PER_BLOCK_BITS(s) (EXT2_SB(s)->s_addr_per_block_bits) 182 #define EXT2_INODE_SIZE(s) (EXT2_SB(s)->s_inode_size) 183 #define EXT2_FIRST_INO(s) (EXT2_SB(s)->s_first_ino) 203 #define EXT2_BLOCKS_PER_GROUP(s) (EXT2_SB(s)->s_blocks_per_group) 204 #define EXT2_DESC_PER_BLOCK(s) (EXT2_SB(s)->s_desc_per_block) 205 #define EXT2_INODES_PER_GROUP(s) (EXT2_SB(s)->s_inodes_per_group) 206 #define EXT2_DESC_PER_BLOCK_BITS(s) (EXT2_SB(s)->s_desc_per_block_bits) 391 #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() 208 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_dir() 263 struct ext2_sb_info *sbi = EXT2_SB(sb); in find_group_orlov() 375 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_other() 453 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() 166 struct ext2_sb_info *sbi = EXT2_SB(sb); in group_adjust_blocks() 332 struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root; in ext2_rsv_window_add() 374 rb_erase(&rsv->rsv_node, &EXT2_SB(sb)->s_rsv_window_root); in rsv_window_remove() 456 spinlock_t *rsv_lock = &EXT2_SB(inode->i_sb)->s_rsv_window_lock; in ext2_discard_reservation() 486 struct ext2_sb_info * sbi = EXT2_SB(sb); in ext2_free_blocks() 716 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate() 731 && !ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate() [all …]
|
D | super.c | 53 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() 104 struct ext2_super_block *es = EXT2_SB(sb)->s_es; in ext2_update_dynamic_rev() 147 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_put_super() 249 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_show_options() 382 if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) in ext2_nfs_get_inode() 659 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_setup_super() 707 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_check_descriptors() 820 struct ext2_sb_info *sbi = EXT2_SB(sb); in descriptor_loc() 950 ((EXT2_SB(sb)->s_mount_opt & EXT2_MOUNT_POSIX_ACL) ? in ext2_fill_super() 1243 struct buffer_head *sbh = EXT2_SB(sb)->s_sbh; in ext2_clear_super_error() [all …]
|
D | inode.c | 810 struct ext2_sb_info *sbi = EXT2_SB(inode->i_sb); in ext2_iomap_begin() 1335 ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) in ext2_get_inode() 1462 !ext2_data_block_valid(EXT2_SB(sb), ei->i_file_acl, 1)) { in ext2_iget() 1550 memset(raw_inode, 0, EXT2_SB(sb)->s_inode_size); in __ext2_write_inode() 1593 EXT2_SB(sb)->s_es->s_rev_level == in __ext2_write_inode() 1598 spin_lock(&EXT2_SB(sb)->s_lock); in __ext2_write_inode() 1602 spin_unlock(&EXT2_SB(sb)->s_lock); in __ext2_write_inode() 1603 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) 345 spin_lock(&EXT2_SB(sb)->s_lock); in ext2_xattr_update_super_block() 347 spin_unlock(&EXT2_SB(sb)->s_lock); in ext2_xattr_update_super_block() 348 mark_buffer_dirty(EXT2_SB(sb)->s_sbh); in ext2_xattr_update_super_block() 766 struct ext2_sb_info *sbi = EXT2_SB(inode->i_sb); in ext2_xattr_delete_inode()
|
D | dir.c | 121 u32 max_inumber = le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count); in ext2_check_page()
|