Merge tag 'xtensa-20240117' of https://github.com/jcmvbkbc/linux-xtensa
[linux-block.git] / fs / jfs / jfs_extent.h
CommitLineData
1a59d1b8 1/* SPDX-License-Identifier: GPL-2.0-or-later */
1da177e4 2/*
63f83c9f 3 * Copyright (C) International Business Machines Corp., 2000-2001
1da177e4
LT
4 */
5#ifndef _H_JFS_EXTENT
6#define _H_JFS_EXTENT
7
ed1c9a7a 8/* get block allocation hint as location of disk inode */
1da177e4
LT
9#define INOHINT(ip) \
10 (addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
11
4d81715f 12extern int extAlloc(struct inode *, s64, s64, xad_t *, bool);
1da177e4 13extern int extHint(struct inode *, s64, xad_t *);
1da177e4
LT
14extern int extRecord(struct inode *, xad_t *);
15
16#endif /* _H_JFS_EXTENT */