/* On success, We end up with an outstanding reference count against iloc->bh. This  */
int ext4_reserve_inode_write(handle_t *handle, struct inode *inode, struct ext4_iloc *iloc)
/* On success, We end up with an outstanding reference count against iloc->bh. This  */
int ext4_reserve_inode_write(handle_t *handle, struct inode *inode, struct ext4_iloc *iloc)
{
	int err;
	err = ext4_get_inode_loc(inode, iloc);
	if (!err) {
		BUFFER_TRACE(iloc->bh, "get_write_access");
		err = ext4_journal_get_write_access(handle, iloc->bh);
		if (err) {
			brelse(iloc->bh);
			iloc->bh = NULL;
		}
	}
	ext4_std_error(inode->i_sb, err);
	return err;
}