Lines Matching refs:jinode
2493 static int jbd2_journal_file_inode(handle_t *handle, struct jbd2_inode *jinode, in jbd2_journal_file_inode() argument
2503 jbd_debug(4, "Adding inode %lu, tid:%d\n", jinode->i_vfs_inode->i_ino, in jbd2_journal_file_inode()
2519 if ((jinode->i_transaction == transaction || in jbd2_journal_file_inode()
2520 jinode->i_next_transaction == transaction) && in jbd2_journal_file_inode()
2521 (jinode->i_flags & flags) == flags) in jbd2_journal_file_inode()
2525 jinode->i_flags |= flags; in jbd2_journal_file_inode()
2527 if (jinode->i_transaction == transaction || in jbd2_journal_file_inode()
2528 jinode->i_next_transaction == transaction) in jbd2_journal_file_inode()
2540 if (jinode->i_transaction) { in jbd2_journal_file_inode()
2541 J_ASSERT(jinode->i_next_transaction == NULL); in jbd2_journal_file_inode()
2542 J_ASSERT(jinode->i_transaction == in jbd2_journal_file_inode()
2544 jinode->i_next_transaction = transaction; in jbd2_journal_file_inode()
2548 J_ASSERT(!jinode->i_next_transaction); in jbd2_journal_file_inode()
2549 jinode->i_transaction = transaction; in jbd2_journal_file_inode()
2550 list_add(&jinode->i_list, &transaction->t_inode_list); in jbd2_journal_file_inode()
2557 int jbd2_journal_inode_add_write(handle_t *handle, struct jbd2_inode *jinode) in jbd2_journal_inode_add_write() argument
2559 return jbd2_journal_file_inode(handle, jinode, in jbd2_journal_inode_add_write()
2563 int jbd2_journal_inode_add_wait(handle_t *handle, struct jbd2_inode *jinode) in jbd2_journal_inode_add_wait() argument
2565 return jbd2_journal_file_inode(handle, jinode, JI_WAIT_DATA); in jbd2_journal_inode_add_wait()
2589 struct jbd2_inode *jinode, in jbd2_journal_begin_ordered_truncate() argument
2596 if (!jinode->i_transaction) in jbd2_journal_begin_ordered_truncate()
2605 inode_trans = jinode->i_transaction; in jbd2_journal_begin_ordered_truncate()
2608 ret = filemap_fdatawrite_range(jinode->i_vfs_inode->i_mapping, in jbd2_journal_begin_ordered_truncate()