blob: dd635a8a0f8c13300b6bdca79148a70b78470950 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) International Business Machines Corp., 2000-2001
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
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
12extern int extAlloc(struct inode *, s64, s64, xad_t *, bool);
13extern int extFill(struct inode *, xad_t *);
14extern int extHint(struct inode *, s64, xad_t *);
15extern int extRealloc(struct inode *, s64, xad_t *, bool);
16extern int extRecord(struct inode *, xad_t *);
17
18#endif /* _H_JFS_EXTENT */