Lines Matching refs:ip

70 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr)  in extAlloc()  argument
72 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb); in extAlloc()
78 txBeginAnon(ip->i_sb); in extAlloc()
81 mutex_lock(&JFS_IP(ip)->commit_mutex); in extAlloc()
122 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
123 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extAlloc()
128 rc = dquot_alloc_block(ip, nxlen); in extAlloc()
130 dbFree(ip, nxaddr, (s64) nxlen); in extAlloc()
131 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extAlloc()
143 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc()
145 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0); in extAlloc()
151 dbFree(ip, nxaddr, nxlen); in extAlloc()
152 dquot_free_block(ip, nxlen); in extAlloc()
153 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extAlloc()
163 mark_inode_dirty(ip); in extAlloc()
165 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extAlloc()
171 if (test_and_clear_cflag(COMMIT_Synclist,ip)) in extAlloc()
172 jfs_commit_inode(ip, 0); in extAlloc()
192 int extHint(struct inode *ip, s64 offset, xad_t * xp) in extHint() argument
194 struct super_block *sb = ip->i_sb; in extHint()
215 rc = xtLookup(ip, prev, nbperpage, &xflag, &xaddr, &xlen, 0); in extHint()
219 jfs_error(ip->i_sb, "corrupt xtree\n"); in extHint()
252 int extRecord(struct inode *ip, xad_t * xp) in extRecord() argument
256 txBeginAnon(ip->i_sb); in extRecord()
258 mutex_lock(&JFS_IP(ip)->commit_mutex); in extRecord()
261 rc = xtUpdate(0, ip, xp); in extRecord()
263 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extRecord()
299 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
301 struct jfs_inode_info *ji = JFS_IP(ip); in extBalloc()
302 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb); in extBalloc()
326 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
344 if (S_ISREG(ip->i_mode) && (ji->fileset == FILESYSTEM_I)) { in extBalloc()