162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci *   Copyright (C) International Business Machines Corp., 2000-2001
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci#ifndef	_H_JFS_EXTENT
662306a36Sopenharmony_ci#define _H_JFS_EXTENT
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/*  get block allocation hint as location of disk inode */
962306a36Sopenharmony_ci#define	INOHINT(ip)	\
1062306a36Sopenharmony_ci	(addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciextern int	extAlloc(struct inode *, s64, s64, xad_t *, bool);
1362306a36Sopenharmony_ciextern int	extHint(struct inode *, s64, xad_t *);
1462306a36Sopenharmony_ciextern int	extRecord(struct inode *, xad_t *);
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#endif	/* _H_JFS_EXTENT */
17