Lines Matching defs:sb

170 	 * sb + inode (ext4_orphan_del()), block bitmap, group descriptor
1604 struct super_block *sb = inode->i_sb;
1607 ext4_msg(sb, KERN_CRIT, "Total free blocks count %lld",
1609 ext4_count_free_clusters(sb)));
1610 ext4_msg(sb, KERN_CRIT, "Free/Dirty block details");
1611 ext4_msg(sb, KERN_CRIT, "free_blocks=%lld",
1612 (long long) EXT4_C2B(EXT4_SB(sb),
1614 ext4_msg(sb, KERN_CRIT, "dirty_blocks=%lld",
1615 (long long) EXT4_C2B(EXT4_SB(sb),
1617 ext4_msg(sb, KERN_CRIT, "Block reservation details");
1618 ext4_msg(sb, KERN_CRIT, "i_reserved_data_blocks=%u",
2218 struct super_block *sb = inode->i_sb;
2220 if (ext4_forced_shutdown(sb))
2228 (err == -ENOSPC && ext4_count_free_clusters(sb))) {
2233 ext4_msg(sb, KERN_CRIT,
2240 ext4_msg(sb, KERN_CRIT,
2540 * fs shutdown state instead of sb->s_flag's SB_RDONLY because
2755 struct super_block *sb = mapping->host->i_sb;
2764 if (unlikely(ext4_forced_shutdown(sb)))
2767 alloc_ctx = ext4_writepages_down_read(sb);
2776 ext4_writepages_up_read(sb, alloc_ctx);
2819 static int ext4_nonda_switch(struct super_block *sb)
2822 struct ext4_sb_info *sbi = EXT4_SB(sb);
2840 try_to_writeback_inodes_sb(sb, WB_REASON_FS_FREE_SPACE);
3750 struct super_block *sb = inode->i_sb;
3757 partial_start = lstart & (sb->s_blocksize - 1);
3758 partial_end = byte_end & (sb->s_blocksize - 1);
3760 start = lstart >> sb->s_blocksize_bits;
3761 end = byte_end >> sb->s_blocksize_bits;
3765 (partial_start || (partial_end != sb->s_blocksize - 1))) {
3773 lstart, sb->s_blocksize);
3778 if (partial_end != sb->s_blocksize - 1)
3870 struct super_block *sb = inode->i_sb;
3916 if (offset & (sb->s_blocksize - 1) ||
3917 (offset + length) & (sb->s_blocksize - 1)) {
3945 first_block_offset = round_up(offset, sb->s_blocksize);
3946 last_block_offset = round_down((offset + length), sb->s_blocksize) - 1;
3964 ext4_std_error(sb, ret);
3973 first_block = (offset + sb->s_blocksize - 1) >>
3974 EXT4_BLOCK_SIZE_BITS(sb);
3975 stop_block = (offset + length) >> EXT4_BLOCK_SIZE_BITS(sb);
4185 struct super_block *sb = inode->i_sb;
4199 * This should never happen since sb->s_maxbytes should not have
4200 * allowed this, sb->s_maxbytes was set according to the huge_file
4203 if (!ext4_has_feature_huge_file(sb))
4325 static int __ext4_get_inode_loc(struct super_block *sb, unsigned long ino,
4337 ino > le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count))
4340 iloc->block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb);
4341 gdp = ext4_get_group_desc(sb, iloc->block_group, NULL);
4348 inodes_per_block = EXT4_SB(sb)->s_inodes_per_block;
4350 EXT4_INODES_PER_GROUP(sb));
4351 iloc->offset = (inode_offset % inodes_per_block) * EXT4_INODE_SIZE(sb);
4353 block = ext4_inode_table(sb, gdp);
4354 if ((block <= le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) ||
4355 (block >= ext4_blocks_count(EXT4_SB(sb)->s_es))) {
4356 ext4_error(sb, "Invalid inode table block %llu in "
4362 bh = sb_getblk(sb, block);
4387 bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp));
4427 if (EXT4_SB(sb)->s_inode_readahead_blks) {
4430 __u32 ra_blks = EXT4_SB(sb)->s_inode_readahead_blks;
4432 table = ext4_inode_table(sb, gdp);
4438 num = EXT4_INODES_PER_GROUP(sb);
4439 if (ext4_has_group_desc_csum(sb))
4440 num -= ext4_itable_unused_count(sb, gdp);
4445 ext4_sb_breadahead_unmovable(sb, b++);
4453 trace_ext4_load_inode(sb, ino);
4457 ext4_simulate_fail_bh(sb, bh, EXT4_SIM_INODE_EIO);
4501 int ext4_get_fc_inode_loc(struct super_block *sb, unsigned long ino,
4504 return __ext4_get_inode_loc(sb, ino, NULL, iloc, NULL);
4571 struct super_block *sb = inode->i_sb;
4573 if (ext4_has_feature_huge_file(sb)) {
4648 struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,
4655 struct ext4_super_block *es = EXT4_SB(sb)->s_es;
4658 journal_t *journal = EXT4_SB(sb)->s_journal;
4667 ((ino < EXT4_FIRST_INO(sb) && ino != EXT4_ROOT_INO) ||
4676 __ext4_error(sb, function, line, false, EFSCORRUPTED, 0,
4682 inode = iget_locked(sb, ino);
4725 if (ext4_has_metadata_csum(sb)) {
4737 ext4_simulate_fail(sb, EXT4_SIM_INODE_CRC)) &&
4738 (!(EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY))) {
4748 if (ext4_has_feature_project(sb) &&
4749 EXT4_INODE_SIZE(sb) > EXT4_GOOD_OLD_INODE_SIZE &&
4797 if (ext4_has_feature_64bit(sb))
4800 inode->i_size = ext4_isize(sb, raw_inode);
4812 if (!ext4_has_feature_dir_index(sb) && ext4_has_metadata_csum(sb) &&
4899 if (!(EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) &&
4977 static void __ext4_update_other_inode_time(struct super_block *sb,
4984 inode = find_inode_by_ino_rcu(sb, ino);
5014 static void ext4_update_other_inodes_time(struct super_block *sb,
5018 int i, inodes_per_block = EXT4_SB(sb)->s_inodes_per_block;
5019 int inode_size = EXT4_INODE_SIZE(sb);
5031 __ext4_update_other_inode_time(sb, orig_ino, ino,
5051 struct super_block *sb = inode->i_sb;
5067 if (!ext4_has_feature_large_file(sb) ||
5068 EXT4_SB(sb)->s_es->s_rev_level == cpu_to_le32(EXT4_GOOD_OLD_REV))
5089 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get write access");
5090 err = ext4_journal_get_write_access(handle, sb,
5091 EXT4_SB(sb)->s_sbh,
5095 lock_buffer(EXT4_SB(sb)->s_sbh);
5096 ext4_set_feature_large_file(sb);
5097 ext4_superblock_csum_set(sb);
5098 unlock_buffer(EXT4_SB(sb)->s_sbh);
5101 EXT4_SB(sb)->s_sbh);
5305 /* (user+group)*(old+new) structure, inode write (sb,