• Home
  • Raw
  • Download

Lines Matching refs:j_inode

103 	struct inode 	*inode = journal->j_inode;  in journal_bmap()
285 struct inode *j_inode = NULL; in e2fsck_get_journal() local
316 journal->j_inode = NULL; in e2fsck_get_journal()
324 j_inode = e2fsck_allocate_memory(ctx, sizeof(*j_inode), in e2fsck_get_journal()
326 if (!j_inode) { in e2fsck_get_journal()
331 j_inode->i_ctx = ctx; in e2fsck_get_journal()
332 j_inode->i_ino = sb->s_journal_inum; in e2fsck_get_journal()
336 &j_inode->i_ext2))) { in e2fsck_get_journal()
341 memset(&j_inode->i_ext2, 0, sizeof(struct ext2_inode)); in e2fsck_get_journal()
342 memcpy(&j_inode->i_ext2.i_block[0], sb->s_jnl_blocks, in e2fsck_get_journal()
344 j_inode->i_ext2.i_size_high = sb->s_jnl_blocks[15]; in e2fsck_get_journal()
345 j_inode->i_ext2.i_size = sb->s_jnl_blocks[16]; in e2fsck_get_journal()
346 j_inode->i_ext2.i_links_count = 1; in e2fsck_get_journal()
347 j_inode->i_ext2.i_mode = LINUX_S_IFREG | 0600; in e2fsck_get_journal()
349 ctx->stashed_ino = j_inode->i_ino; in e2fsck_get_journal()
350 ctx->stashed_inode = &j_inode->i_ext2; in e2fsck_get_journal()
353 if (!j_inode->i_ext2.i_links_count || in e2fsck_get_journal()
354 !LINUX_S_ISREG(j_inode->i_ext2.i_mode)) { in e2fsck_get_journal()
358 if (EXT2_I_SIZE(&j_inode->i_ext2) / journal->j_blocksize < in e2fsck_get_journal()
364 retval = ext2fs_block_iterate3(ctx->fs, j_inode->i_ino, in e2fsck_get_journal()
368 (int) EXT2_I_SIZE(&j_inode->i_ext2)) { in e2fsck_get_journal()
374 &j_inode->i_ext2); in e2fsck_get_journal()
379 journal->j_maxlen = EXT2_I_SIZE(&j_inode->i_ext2) / in e2fsck_get_journal()
384 &j_inode->i_ext2, in e2fsck_get_journal()
391 journal->j_inode = j_inode; in e2fsck_get_journal()
516 if (j_inode) in e2fsck_get_journal()
517 ext2fs_free_mem(&j_inode); in e2fsck_get_journal()
528 if (j_inode) in e2fsck_get_journal()
529 ext2fs_free_mem(&j_inode); in e2fsck_get_journal()
784 if (journal->j_inode) in e2fsck_journal_release()
785 ext2fs_free_mem(&journal->j_inode); in e2fsck_journal_release()