Lines Matching refs:sbi
322 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dirent_csum() local
326 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dirent_csum()
413 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_dx_csum() local
422 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)dirent, size); in ext4_dx_csum()
423 csum = ext4_chksum(sbi, csum, (__u8 *)t, sizeof(struct dx_tail)); in ext4_dx_csum()
2838 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_orphan_add() local
2843 if (!sbi->s_journal || is_bad_inode(inode)) in ext4_orphan_add()
2864 BUFFER_TRACE(sbi->s_sbh, "get_write_access"); in ext4_orphan_add()
2865 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_orphan_add()
2873 mutex_lock(&sbi->s_orphan_lock); in ext4_orphan_add()
2879 (le32_to_cpu(sbi->s_es->s_inodes_count))) { in ext4_orphan_add()
2881 NEXT_ORPHAN(inode) = le32_to_cpu(sbi->s_es->s_last_orphan); in ext4_orphan_add()
2882 sbi->s_es->s_last_orphan = cpu_to_le32(inode->i_ino); in ext4_orphan_add()
2885 list_add(&EXT4_I(inode)->i_orphan, &sbi->s_orphan); in ext4_orphan_add()
2886 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_add()
2899 mutex_lock(&sbi->s_orphan_lock); in ext4_orphan_add()
2901 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_add()
2920 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_orphan_del() local
2925 if (!sbi->s_journal && !(sbi->s_mount_state & EXT4_ORPHAN_FS)) in ext4_orphan_del()
2939 mutex_lock(&sbi->s_orphan_lock); in ext4_orphan_del()
2950 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2955 if (prev == &sbi->s_orphan) { in ext4_orphan_del()
2957 BUFFER_TRACE(sbi->s_sbh, "get_write_access"); in ext4_orphan_del()
2958 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_orphan_del()
2960 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2963 sbi->s_es->s_last_orphan = cpu_to_le32(ino_next); in ext4_orphan_del()
2964 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2975 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()
2980 mutex_unlock(&sbi->s_orphan_lock); in ext4_orphan_del()