^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) International Business Machines Corp., 2000-2001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #ifndef _H_JFS_EXTENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #define _H_JFS_EXTENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) /* get block allocation allocation hint as location of disk inode */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define INOHINT(ip) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) (addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern int extAlloc(struct inode *, s64, s64, xad_t *, bool);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern int extFill(struct inode *, xad_t *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern int extHint(struct inode *, s64, xad_t *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern int extRealloc(struct inode *, s64, xad_t *, bool);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern int extRecord(struct inode *, xad_t *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #endif /* _H_JFS_EXTENT */