• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jfs/

Lines Matching refs:ip

70  *	ip	- the inode of the file.
86 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr)
88 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb);
94 txBeginAnon(ip->i_sb);
97 mutex_lock(&JFS_IP(ip)->commit_mutex);
138 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) {
139 mutex_unlock(&JFS_IP(ip)->commit_mutex);
144 rc = dquot_alloc_block(ip, nxlen);
146 dbFree(ip, nxaddr, (s64) nxlen);
147 mutex_unlock(&JFS_IP(ip)->commit_mutex);
159 rc = xtExtend(0, ip, xoff, (int) nxlen, 0);
161 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0);
167 dbFree(ip, nxaddr, nxlen);
168 dquot_free_block(ip, nxlen);
169 mutex_unlock(&JFS_IP(ip)->commit_mutex);
179 mark_inode_dirty(ip);
181 mutex_unlock(&JFS_IP(ip)->commit_mutex);
187 if (test_and_clear_cflag(COMMIT_Synclist,ip))
188 jfs_commit_inode(ip, 0);
202 * ip - the inode of the file.
215 int extRealloc(struct inode *ip, s64 nxlen, xad_t * xp, bool abnr)
217 struct super_block *sb = ip->i_sb;
224 txBeginAnon(ip->i_sb);
226 mutex_lock(&JFS_IP(ip)->commit_mutex);
244 if ((rc = xtUpdate(0, ip, xp)))
256 if ((rc = extBrealloc(ip, xaddr, xlen, &nxlen, &nxaddr)))
260 rc = dquot_alloc_block(ip, nxlen);
262 dbFree(ip, nxaddr, (s64) nxlen);
263 mutex_unlock(&JFS_IP(ip)->commit_mutex);
300 if ((rc = xtExtend(0, ip, xoff + xlen, (int) nextend, 0))) {
301 dbFree(ip, xaddr + xlen, delta);
302 dquot_free_block(ip, nxlen);
311 if ((rc = xtTailgate(0, ip, xoff, (int) ntail, nxaddr, 0))) {
312 dbFree(ip, nxaddr, nxlen);
313 dquot_free_block(ip, nxlen);
326 if (xtInsert (0, ip, xflag, xoff + ntail, (int) ninsert,
328 dbFree(ip, xaddr, (s64) ninsert);
341 mark_inode_dirty(ip);
343 mutex_unlock(&JFS_IP(ip)->commit_mutex);
355 * ip - the inode of the file.
364 int extHint(struct inode *ip, s64 offset, xad_t * xp)
366 struct super_block *sb = ip->i_sb;
387 rc = xtLookup(ip, prev, nbperpage, &xflag, &xaddr, &xlen, 0);
391 jfs_error(ip->i_sb, "extHint: corrupt xtree");
416 * ip - inode of the file.
424 int extRecord(struct inode *ip, xad_t * xp)
428 txBeginAnon(ip->i_sb);
430 mutex_lock(&JFS_IP(ip)->commit_mutex);
433 rc = xtUpdate(0, ip, xp);
435 mutex_unlock(&JFS_IP(ip)->commit_mutex);
448 * ip - the inode of the file.
456 int extFill(struct inode *ip, xad_t * xp)
458 int rc, nbperpage = JFS_SBI(ip->i_sb)->nbperpage;
459 s64 blkno = offsetXAD(xp) >> ip->i_blkbits;
461 // assert(ISSPARSE(ip));
467 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false)))
493 * ip - the inode of the file.
509 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno)
511 struct jfs_inode_info *ji = JFS_IP(ip);
512 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb);
531 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) {
549 if (S_ISREG(ip->i_mode) && (ji->fileset == FILESYSTEM_I)) {
587 * ip - the inode of the file.
602 extBrealloc(struct inode *ip,
608 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) {
619 return (extBalloc(ip, blkno, newnblks, newblkno));