xref: /openbmc/linux/fs/jfs/jfs_extent.h (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
11a59d1b8SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
21da177e4SLinus Torvalds /*
363f83c9fSDave Kleikamp  *   Copyright (C) International Business Machines Corp., 2000-2001
41da177e4SLinus Torvalds  */
51da177e4SLinus Torvalds #ifndef	_H_JFS_EXTENT
61da177e4SLinus Torvalds #define _H_JFS_EXTENT
71da177e4SLinus Torvalds 
8*ed1c9a7aSRandy Dunlap /*  get block allocation hint as location of disk inode */
91da177e4SLinus Torvalds #define	INOHINT(ip)	\
101da177e4SLinus Torvalds 	(addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
111da177e4SLinus Torvalds 
124d81715fSRichard Knutsson extern int	extAlloc(struct inode *, s64, s64, xad_t *, bool);
131da177e4SLinus Torvalds extern int	extHint(struct inode *, s64, xad_t *);
141da177e4SLinus Torvalds extern int	extRecord(struct inode *, xad_t *);
151da177e4SLinus Torvalds 
161da177e4SLinus Torvalds #endif	/* _H_JFS_EXTENT */
17