Lines Matching refs:j_inode
52 struct inode *inode = journal->j_inode; in journal_bmap()
234 struct inode *j_inode = NULL; in e2fsck_get_journal() local
264 journal->j_inode = NULL; in e2fsck_get_journal()
272 j_inode = e2fsck_allocate_memory(ctx, sizeof(*j_inode), in e2fsck_get_journal()
274 if (!j_inode) { in e2fsck_get_journal()
279 j_inode->i_ctx = ctx; in e2fsck_get_journal()
280 j_inode->i_ino = sb->s_journal_inum; in e2fsck_get_journal()
284 &j_inode->i_ext2))) { in e2fsck_get_journal()
289 memset(&j_inode->i_ext2, 0, sizeof(struct ext2_inode)); in e2fsck_get_journal()
290 memcpy(&j_inode->i_ext2.i_block[0], sb->s_jnl_blocks, in e2fsck_get_journal()
292 j_inode->i_ext2.i_size_high = sb->s_jnl_blocks[15]; in e2fsck_get_journal()
293 j_inode->i_ext2.i_size = sb->s_jnl_blocks[16]; in e2fsck_get_journal()
294 j_inode->i_ext2.i_links_count = 1; in e2fsck_get_journal()
295 j_inode->i_ext2.i_mode = LINUX_S_IFREG | 0600; in e2fsck_get_journal()
297 ctx->stashed_ino = j_inode->i_ino; in e2fsck_get_journal()
298 ctx->stashed_inode = &j_inode->i_ext2; in e2fsck_get_journal()
301 if (!j_inode->i_ext2.i_links_count || in e2fsck_get_journal()
302 !LINUX_S_ISREG(j_inode->i_ext2.i_mode)) { in e2fsck_get_journal()
306 if (EXT2_I_SIZE(&j_inode->i_ext2) / journal->j_blocksize < in e2fsck_get_journal()
312 retval = ext2fs_block_iterate3(ctx->fs, j_inode->i_ino, in e2fsck_get_journal()
316 (int) EXT2_I_SIZE(&j_inode->i_ext2)) { in e2fsck_get_journal()
322 &j_inode->i_ext2); in e2fsck_get_journal()
327 journal->j_maxlen = EXT2_I_SIZE(&j_inode->i_ext2) / in e2fsck_get_journal()
332 &j_inode->i_ext2, in e2fsck_get_journal()
339 journal->j_inode = j_inode; in e2fsck_get_journal()
442 if (j_inode) in e2fsck_get_journal()
443 ext2fs_free_mem(&j_inode); in e2fsck_get_journal()
454 if (j_inode) in e2fsck_get_journal()
455 ext2fs_free_mem(&j_inode); in e2fsck_get_journal()
694 if (journal->j_inode) in e2fsck_journal_release()
695 ext2fs_free_mem(&journal->j_inode); in e2fsck_journal_release()