Thomas Gleixner | 1a59d1b8 | 2019-05-27 08:55:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
Dave Kleikamp | 63f83c9 | 2006-10-02 09:55:27 -0500 | [diff] [blame] | 3 | * Copyright (C) International Business Machines Corp., 2000-2001 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | */ |
| 5 | #ifndef _H_JFS_EXTENT |
| 6 | #define _H_JFS_EXTENT |
| 7 | |
| 8 | /* get block allocation allocation hint as location of disk inode */ |
| 9 | #define INOHINT(ip) \ |
| 10 | (addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1) |
| 11 | |
Richard Knutsson | 4d81715 | 2006-09-30 23:27:14 -0700 | [diff] [blame] | 12 | extern int extAlloc(struct inode *, s64, s64, xad_t *, bool); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | extern int extFill(struct inode *, xad_t *); |
| 14 | extern int extHint(struct inode *, s64, xad_t *); |
Richard Knutsson | 4d81715 | 2006-09-30 23:27:14 -0700 | [diff] [blame] | 15 | extern int extRealloc(struct inode *, s64, xad_t *, bool); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | extern int extRecord(struct inode *, xad_t *); |
| 17 | |
| 18 | #endif /* _H_JFS_EXTENT */ |