Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *   Copyright (C) International Business Machines Corp., 2000-2001
0004  */
0005 #ifndef _H_JFS_EXTENT
0006 #define _H_JFS_EXTENT
0007 
0008 /*  get block allocation hint as location of disk inode */
0009 #define INOHINT(ip) \
0010     (addressPXD(&(JFS_IP(ip)->ixpxd)) + lengthPXD(&(JFS_IP(ip)->ixpxd)) - 1)
0011 
0012 extern int  extAlloc(struct inode *, s64, s64, xad_t *, bool);
0013 extern int  extFill(struct inode *, xad_t *);
0014 extern int  extHint(struct inode *, s64, xad_t *);
0015 extern int  extRealloc(struct inode *, s64, xad_t *, bool);
0016 extern int  extRecord(struct inode *, xad_t *);
0017 
0018 #endif  /* _H_JFS_EXTENT */