Lines Matching refs:sbi

325 	struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);  in ext4_dirent_csum()  local
329 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dirent_csum()
420 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dx_csum() local
429 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dx_csum()
430 csum = ext4_chksum(sbi, csum, (__u8 *)t, sizeof(struct dx_tail)); in ext4_dx_csum()
2750 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_orphan_add() local
2755 if (!sbi->s_journal || is_bad_inode(inode)) in ext4_orphan_add()
2776 BUFFER_TRACE(sbi->s_sbh, "get_write_access"); in ext4_orphan_add()
2777 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_orphan_add()
2785 mutex_lock(&sbi->s_orphan_lock); in ext4_orphan_add()
2791 (le32_to_cpu(sbi->s_es->s_inodes_count))) { in ext4_orphan_add()
2793 NEXT_ORPHAN(inode) = le32_to_cpu(sbi->s_es->s_last_orphan); in ext4_orphan_add()
2794 sbi->s_es->s_last_orphan = cpu_to_le32(inode->i_ino); in ext4_orphan_add()
2797 list_add(&EXT4_I(inode)->i_orphan, &sbi->s_orphan); in ext4_orphan_add()
2798 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_add()
2811 mutex_lock(&sbi->s_orphan_lock); in ext4_orphan_add()
2813 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_add()
2832 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_orphan_del() local
2837 if (!sbi->s_journal && !(sbi->s_mount_state & EXT4_ORPHAN_FS)) in ext4_orphan_del()
2851 mutex_lock(&sbi->s_orphan_lock); in ext4_orphan_del()
2862 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2867 if (prev == &sbi->s_orphan) { in ext4_orphan_del()
2869 BUFFER_TRACE(sbi->s_sbh, "get_write_access"); in ext4_orphan_del()
2870 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_orphan_del()
2872 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2875 sbi->s_es->s_last_orphan = cpu_to_le32(ino_next); in ext4_orphan_del()
2876 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2887 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2892 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()