Lines Matching refs:current_fs
350 ext2_filsys current_fs; variable
663 retval = ext2fs_bmap2(current_fs, set_ino, in parse_bmap()
679 *checksum = ext2fs_group_desc_csum(current_fs, set_bg); in parse_gd_csum()
694 size_t sz = EXT2_INODE_SIZE(current_fs->super); in parse_inode_csum()
701 retval = ext2fs_read_inode_full(current_fs, set_ino, in parse_inode_csum()
708 ext2fs_swap_inode_full(current_fs, tmp_inode, in parse_inode_csum()
715 retval = ext2fs_inode_csum_set(current_fs, set_ino, in parse_inode_csum()
826 set_sb = *current_fs->super; in do_set_super()
828 *current_fs->super = set_sb; in do_set_super()
829 ext2fs_mark_super_dirty(current_fs); in do_set_super()
895 if (current_fs && in do_set_block_group_descriptor()
896 EXT2_DESC_SIZE(current_fs->super) >= EXT2_MIN_DESC_SIZE_64BIT) { in do_set_block_group_descriptor()
921 if (set_bg >= current_fs->group_desc_count) { in do_set_block_group_descriptor()
931 target = ext2fs_group_desc(current_fs, current_fs->group_desc, set_bg); in do_set_block_group_descriptor()
935 ext2fs_mark_super_dirty(current_fs); in do_set_block_group_descriptor()
945 retval = ext2fs_mmp_clear(current_fs); in parse_mmp_clear()
949 memcpy(info->ptr, current_fs->mmp_buf, info->size); in parse_mmp_clear()
973 if (current_fs->super->s_mmp_block == 0) { in do_set_mmp_value()
982 mmp_s = current_fs->mmp_buf; in do_set_mmp_value()
984 retval = ext2fs_get_mem(current_fs->blocksize, &mmp_s); in do_set_mmp_value()
989 retval = ext2fs_mmp_read(current_fs, in do_set_mmp_value()
990 current_fs->super->s_mmp_block, mmp_s); in do_set_mmp_value()
993 (long long)current_fs->super->s_mmp_block); in do_set_mmp_value()
997 current_fs->mmp_buf = mmp_s; in do_set_mmp_value()
1008 ext2fs_mmp_write(current_fs, current_fs->super->s_mmp_block, in do_set_mmp_value()