18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *   Copyright (C) International Business Machines Corp., 2000-2001
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci#ifndef	_H_JFS_EXTENT
68c2ecf20Sopenharmony_ci#define _H_JFS_EXTENT
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/*  get block allocation allocation hint as location of disk inode */
98c2ecf20Sopenharmony_ci#define	INOHINT(ip)	\
108c2ecf20Sopenharmony_ci	(addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciextern int	extAlloc(struct inode *, s64, s64, xad_t *, bool);
138c2ecf20Sopenharmony_ciextern int	extFill(struct inode *, xad_t *);
148c2ecf20Sopenharmony_ciextern int	extHint(struct inode *, s64, xad_t *);
158c2ecf20Sopenharmony_ciextern int	extRealloc(struct inode *, s64, xad_t *, bool);
168c2ecf20Sopenharmony_ciextern int	extRecord(struct inode *, xad_t *);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#endif	/* _H_JFS_EXTENT */
19