Lines Matching +full:ip +full:- +full:block

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) International Business Machines Corp., 2000-2002
9 * jfs_dtree.h: directory B+-tree manager
17 struct inode *ip; member
29 * N.B. last/only segment of entry is terminated by next = -1;
57 __le16 name[11]; /* 22: 2-byte aligned */
70 * For legacy filesystems, name contains 13 wchars -- no index field
73 __le32 inumber; /* 4: 4-byte aligned */
76 __le16 name[11]; /* 22: 2-byte aligned */
91 #define DO_INDEX(INODE) (JFS_SBI((INODE)->i_sb)->mntflag & JFS_DIR_INDEX)
103 __le32 addr2; /* 4: lower 32 bits of leaf page address -OR-
115 (dir_table_slot)->addr1 = ((u64)address64) >> 32;\
116 (dir_table_slot)->addr2 = __cpu_to_le32((address64) & 0xffffffff);\
120 ( ((s64)((dts)->addr1)) << 32 | __le32_to_cpu((dts)->addr2) )
128 * directory root page (in-line in on-disk inode):
149 #define PARENT(IP) \ argument
150 (le32_to_cpu(JFS_IP(IP)->i_dtroot.header.idotdot))
154 #define dtEmpty(IP) (JFS_IP(IP)->i_dtroot.header.nextindex == 0) argument
164 * 1-byte per entry
165 * 512 byte block: 16 entry tbl (1 slot)
166 * 1024 byte block: 32 entry tbl (1 slot)
167 * 2048 byte block: 64 entry tbl (2 slot)
168 * 4096 byte block: 128 entry tbl (4 slot)
171 * 512 byte block: 16 - 2 = 14 slot
172 * 1024 byte block: 32 - 2 = 30 slot
173 * 2048 byte block: 64 - 3 = 61 slot
174 * 4096 byte block: 128 - 5 = 123 slot
176 * N.B. index is 0-based; index fields refer to slot index
178 * end of entry stot list or freelist is marked with -1.
221 #define DT_GETSTBL(p) ( ((p)->header.flag & BT_ROOT) ?\
222 ((dtroot_t *)(p))->header.stbl : \
223 (s8 *)&(p)->slot[(p)->header.stblindex] )
241 extern void dtInitRoot(tid_t tid, struct inode *ip, u32 idotdot);
243 extern int dtSearch(struct inode *ip, struct component_name * key,
246 extern int dtInsert(tid_t tid, struct inode *ip, struct component_name * key,
249 extern int dtDelete(tid_t tid, struct inode *ip, struct component_name * key,
252 extern int dtModify(tid_t tid, struct inode *ip, struct component_name * key,