Lines Matching defs:ip

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