jfs_extent.h 615 B

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