/* %-EINVAL - bmap is broken. (the caller should call nilfs_error())  */
int nilfs_mdt_mark_block_dirty(struct inode *inode, unsigned long block)
/* %-EINVAL - bmap is broken. (the caller should call nilfs_error())  */
int nilfs_mdt_mark_block_dirty(struct inode *inode, unsigned long block)
{
	struct buffer_head *bh;
	int err;
	err = nilfs_mdt_read_block(inode, block, 0, &bh);
	if (unlikely(err))
		return err;
	nilfs_mark_buffer_dirty(bh);
	nilfs_mdt_mark_dirty(inode);
	brelse(bh);
	return 0;
}