• Home
  • Raw
  • Download

Lines Matching refs:j_inode

108 	struct inode	*inode = journal->j_inode;  in journal_bmap()
296 struct inode *j_inode = NULL; in ext2fs_get_journal() local
321 journal->j_inode = NULL; in ext2fs_get_journal()
329 retval = ext2fs_get_memzero(sizeof(*j_inode), &j_inode); in ext2fs_get_journal()
333 j_inode->i_fs = fs; in ext2fs_get_journal()
334 j_inode->i_ino = sb->s_journal_inum; in ext2fs_get_journal()
337 &j_inode->i_ext2); in ext2fs_get_journal()
343 memset(&j_inode->i_ext2, 0, sizeof(struct ext2_inode)); in ext2fs_get_journal()
344 memcpy(&j_inode->i_ext2.i_block[0], sb->s_jnl_blocks, in ext2fs_get_journal()
346 j_inode->i_ext2.i_size_high = sb->s_jnl_blocks[15]; in ext2fs_get_journal()
347 j_inode->i_ext2.i_size = sb->s_jnl_blocks[16]; in ext2fs_get_journal()
348 j_inode->i_ext2.i_links_count = 1; in ext2fs_get_journal()
349 j_inode->i_ext2.i_mode = LINUX_S_IFREG | 0600; in ext2fs_get_journal()
352 if (!j_inode->i_ext2.i_links_count || in ext2fs_get_journal()
353 !LINUX_S_ISREG(j_inode->i_ext2.i_mode)) { in ext2fs_get_journal()
357 if (EXT2_I_SIZE(&j_inode->i_ext2) / journal->j_blocksize < in ext2fs_get_journal()
363 retval = ext2fs_block_iterate3(fs, j_inode->i_ino, in ext2fs_get_journal()
367 (int) EXT2_I_SIZE(&j_inode->i_ext2)) { in ext2fs_get_journal()
373 &j_inode->i_ext2); in ext2fs_get_journal()
378 journal->j_maxlen = EXT2_I_SIZE(&j_inode->i_ext2) / in ext2fs_get_journal()
383 &j_inode->i_ext2, in ext2fs_get_journal()
390 journal->j_inode = j_inode; in ext2fs_get_journal()
508 if (j_inode) in ext2fs_get_journal()
509 ext2fs_free_mem(&j_inode); in ext2fs_get_journal()
518 if (j_inode) in ext2fs_get_journal()
519 ext2fs_free_mem(&j_inode); in ext2fs_get_journal()
669 if (journal->j_inode) in ext2fs_journal_release()
670 ext2fs_free_mem(&journal->j_inode); in ext2fs_journal_release()