blob: dd635a8a0f8c13300b6bdca79148a70b78470950 [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Dave Kleikamp63f83c92006-10-02 09:55:27 -05003 * Copyright (C) International Business Machines Corp., 2000-2001
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 */
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 Knutsson4d817152006-09-30 23:27:14 -070012extern int extAlloc(struct inode *, s64, s64, xad_t *, bool);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013extern int extFill(struct inode *, xad_t *);
14extern int extHint(struct inode *, s64, xad_t *);
Richard Knutsson4d817152006-09-30 23:27:14 -070015extern int extRealloc(struct inode *, s64, xad_t *, bool);
Linus Torvalds1da177e2005-04-16 15:20:36 -070016extern int extRecord(struct inode *, xad_t *);
17
18#endif /* _H_JFS_EXTENT */