/* nilfs_dirty_inode() loads a inode block containing the specified @inode and copies data from a nilfs_inode to a corresponding inode entry in the inode block. This operation is excluded from the segment construction. This function can be called both as a single operation and as a part of indivisible file operations.  */
void nilfs_dirty_inode(struct inode *inode)
/* nilfs_dirty_inode() loads a inode block containing the specified @inode and copies data from a nilfs_inode to a corresponding inode entry in the inode block. This operation is excluded from the segment construction. This function can be called both as a single operation and as a part of indivisible file operations.  */
void nilfs_dirty_inode(struct inode *inode)
{
	struct nilfs_transaction_info ti;
	if (is_bad_inode(inode)) {
		nilfs_warning(inode->i_sb, __func__,
			      "tried to mark bad_inode dirty. ignored.\n");
		dump_stack();
		return;
	}
	nilfs_transaction_begin(inode->i_sb, &ti, 0);
	nilfs_mark_inode_dirty(inode);
	nilfs_transaction_commit(inode->i_sb);
}