Lines Matching refs:sb

56 static inline void ext4fs_sb_free_inodes_dec(struct ext2_sblock *sb)  in ext4fs_sb_free_inodes_dec()  argument
58 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) - 1); in ext4fs_sb_free_inodes_dec()
61 static inline void ext4fs_sb_free_blocks_dec(struct ext2_sblock *sb) in ext4fs_sb_free_blocks_dec() argument
63 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_free_blocks_dec()
64 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_free_blocks_dec()
67 sb->free_blocks = cpu_to_le32(free_blocks & 0xffffffff); in ext4fs_sb_free_blocks_dec()
68 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_free_blocks_dec()
110 uint64_t ext4fs_sb_get_free_blocks(const struct ext2_sblock *sb) in ext4fs_sb_get_free_blocks() argument
112 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_get_free_blocks()
113 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_get_free_blocks()
117 void ext4fs_sb_set_free_blocks(struct ext2_sblock *sb, uint64_t free_blocks) in ext4fs_sb_set_free_blocks() argument
119 sb->free_blocks = cpu_to_le32(free_blocks & 0xffffffff); in ext4fs_sb_set_free_blocks()
120 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_set_free_blocks()
428 if (le32_to_cpu(fs->sb->feature_ro_compat) & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) { in ext4fs_checksum_update()
431 crc = crc16(~0, (__u8 *)fs->sb->unique_id, in ext4fs_checksum_update()
432 sizeof(fs->sb->unique_id)); in ext4fs_checksum_update()
1001 ext4fs_sb_free_blocks_dec(fs->sb); in ext4fs_get_new_blk_no()
1076 ext4fs_sb_free_blocks_dec(fs->sb); in ext4fs_get_new_blk_no()
1103 int has_gdt_chksum = le32_to_cpu(fs->sb->feature_ro_compat) & in ext4fs_get_new_inode_no()
1137 ext4fs_sb_free_inodes_dec(fs->sb); in ext4fs_get_new_inode_no()
1193 ext4fs_sb_free_inodes_dec(fs->sb); in ext4fs_get_new_inode_no()