Lines Matching defs:inode

20  * (aka inode number) as data.
28 * directory starts as a root/leaf page in on-disk inode
84 * target directory inode lock is being held on entry/exit
139 static int dtSplitUp(tid_t tid, struct inode *ip,
142 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split,
145 static int dtExtendPage(tid_t tid, struct inode *ip,
148 static int dtSplitRoot(tid_t tid, struct inode *ip,
151 static int dtDeleteUp(tid_t tid, struct inode *ip, struct metapage * fmp,
154 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p);
156 static int dtReadFirst(struct inode *ip, struct btstack * btstack);
158 static int dtReadNext(struct inode *ip,
191 * Having metadata mapped into the directory inode's address space
195 static struct metapage *read_index_page(struct inode *inode, s64 blkno)
202 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1);
206 return read_metapage(inode, xaddr, PSIZE, 1);
214 static struct metapage *get_index_page(struct inode *inode, s64 blkno)
221 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1);
225 return get_metapage(inode, xaddr, PSIZE, 1);
236 static struct dir_table_slot *find_index(struct inode *ip, u32 index,
291 static inline void lock_index(tid_t tid, struct inode *ip, struct metapage * mp,
321 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
354 * dir table fits inline within inode
483 static void free_index(tid_t tid, struct inode *ip, u32 index, u32 next)
511 static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn,
536 static int read_index(struct inode *ip, u32 index,
567 int dtSearch(struct inode *ip, struct component_name * key, ino_t * data,
814 int dtInsert(tid_t tid, struct inode *ip,
924 struct inode *ip, struct dtsplit * split, struct btstack * btstack)
1323 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split,
1636 struct inode *ip, struct dtsplit * split, struct btstack * btstack)
1856 * i.e., root remains fixed in tree anchor (inode) and
1869 struct inode *ip, struct dtsplit * split, struct metapage ** rmpp)
2019 * acquire a transaction lock on the root page (in-memory inode)
2076 struct inode *ip, struct component_name * key, ino_t * ino, int flag)
2230 static int dtDeleteUp(tid_t tid, struct inode *ip,
2442 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p)
2519 * initialize directory root (inline in inode)
2521 void dtInitRoot(tid_t tid, struct inode *ip, u32 idotdot)
2613 static void add_missing_indices(struct inode *inode, s64 bn)
2627 tid = txBegin(inode->i_sb, 0);
2629 DT_GETPAGE(inode, bn, mp, PSIZE, p, rc);
2635 BT_MARK_DIRTY(mp, inode);
2639 tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY);
2649 if ((index < 2) || (index >= JFS_IP(inode)->next_index)) {
2650 d->index = cpu_to_le32(add_index(tid, inode, bn, i));
2661 (void) txCommit(tid, 1, &inode, 0);
2702 struct inode *ip = file_inode(file);
3037 static int dtReadFirst(struct inode *ip, struct btstack * btstack)
3109 static int dtReadNext(struct inode *ip, loff_t * offset,
4199 * FUNCTION: Modify the inode number part of a directory entry
4205 * orig_ino - Original inode number expected in entry
4206 * new_ino - New inode number to put into entry
4214 int dtModify(tid_t tid, struct inode *ip,
4262 /* substitute the inode number of the entry */