/fs/jfs/ |
D | jfs_extent.c | 86 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr) in extAlloc() argument 100 if (xlen > MAXXLEN) in extAlloc() 101 xlen = MAXXLEN; in extAlloc() 137 nxlen = xlen; in extAlloc() 218 s64 xaddr, xlen, nxaddr, delta, xoff; in extRealloc() local 235 xlen = lengthXAD(xp); in extRealloc() 256 if ((rc = extBrealloc(ip, xaddr, xlen, &nxlen, &nxaddr))) in extRealloc() 267 delta = nxlen - xlen; in extRealloc() 282 nextend = ntail - xlen; in extRealloc() 300 if ((rc = xtExtend(0, ip, xoff + xlen, (int) nextend, 0))) { in extRealloc() [all …]
|
D | jfs_xtree.c | 158 int xlen; in xtLookup() local 205 xlen = lengthXAD(xad); in xtLookup() 206 xend = xoff + xlen; in xtLookup() 538 struct inode *ip, int xflag, s64 xoff, s32 xlen, s64 * xaddrp, in xtInsert() argument 555 jfs_info("xtInsert: nxoff:0x%lx nxlen:0x%x", (ulong) xoff, xlen); in xtInsert() 573 if ((cmp == 0) || (next && (xlen > next - xoff))) { in xtInsert() 589 if ((rc = dquot_alloc_block(ip, xlen))) in xtInsert() 591 if ((rc = dbAlloc(ip, hint, (s64) xlen, &xaddr))) { in xtInsert() 592 dquot_free_block(ip, xlen); in xtInsert() 614 split.len = xlen; in xtInsert() [all …]
|
D | resize.c | 78 int newNpages = 0, nPages, newPage, xlen, t32; in jfs_extendfs() local 394 xlen = (newNpages - nPages) << sbi->l2nbperpage; in jfs_extendfs() 395 xlen = min(xlen, (int) nblocks) & ~(sbi->nbperpage - 1); in jfs_extendfs() 400 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs() 405 ipbmap->i_size += xlen << sbi->l2bsize; in jfs_extendfs() 406 inode_add_bytes(ipbmap, xlen << sbi->l2bsize); in jfs_extendfs()
|
D | jfs_metapage.c | 355 int xlen; in metapage_writepage() local 396 if (xlen && lblock == next_block) { in metapage_writepage() 398 len = min(xlen, blocks_per_mp); in metapage_writepage() 399 xlen -= len; in metapage_writepage() 419 xlen = (PAGE_SIZE - offset) >> inode->i_blkbits; in metapage_writepage() 420 pblock = metapage_get_blocks(inode, lblock, &xlen); in metapage_writepage() 430 len = min(xlen, (int)JFS_SBI(inode->i_sb)->nbperpage); in metapage_writepage() 443 xlen -= len; in metapage_writepage() 492 int xlen; in metapage_readpage() local 502 xlen = blocks_per_page - block_offset; in metapage_readpage() [all …]
|
D | jfs_xtree.h | 108 int xflag, s64 xoff, int xlen, s64 * xaddrp, int flag); 109 extern int xtExtend(tid_t tid, struct inode *ip, s64 xoff, int xlen, 113 s64 xoff, int xlen, s64 xaddr, int flag); 116 extern int xtDelete(tid_t tid, struct inode *ip, s64 xoff, int xlen,
|
D | inode.c | 206 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block() local 217 (!xtLookup(ip, lblock64, xlen, &xflag, &xaddr, &xlen, 0)) && in jfs_get_block() 228 XADlength(&xad, xlen); in jfs_get_block() 245 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block() 257 rc = extAlloc(ip, xlen, lblock64, &xad, false); in jfs_get_block()
|
D | jfs_txnmgr.c | 2444 int xlen; in txAllocPMap() local 2459 xlen = lengthXAD(xad); in txAllocPMap() 2461 (s64) xlen, tblk); in txAllocPMap() 2464 (ulong) xaddr, xlen); in txAllocPMap() 2470 xlen = lengthPXD(&pxdlock->pxd); in txAllocPMap() 2471 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, tblk); in txAllocPMap() 2472 jfs_info("allocPMap: xaddr:0x%lx xlen:%d", (ulong) xaddr, xlen); in txAllocPMap() 2479 xlen = lengthPXD(pxd); in txAllocPMap() 2480 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, in txAllocPMap() 2483 (ulong) xaddr, xlen); in txAllocPMap() [all …]
|
D | jfs_dtree.c | 213 s32 xlen; in read_index_page() local 215 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); in read_index_page() 232 s32 xlen; in get_index_page() local 234 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); in get_index_page() 945 int xlen, xsize; in dtSplitUp() local 980 xlen = 1; in dtSplitUp() 985 xlen++; in dtSplitUp() 986 if ((rc = dbAlloc(ip, 0, (s64) xlen, &xaddr))) { in dtSplitUp() 995 PXDlength(pxd, xlen); in dtSplitUp() 1000 dbFree(ip, xaddr, xlen); in dtSplitUp() [all …]
|
D | namei.c | 732 int xlen = lengthDXD(&JFS_IP(ip)->ea); in jfs_free_zero_link() local 744 PXDlength(&pxdlock->pxd, xlen); in jfs_free_zero_link() 753 int xlen = lengthDXD(&JFS_IP(ip)->acl); in jfs_free_zero_link() local 764 PXDlength(&pxdlock->pxd, xlen); in jfs_free_zero_link() 898 s64 xlen = 0; in jfs_symlink() local 998 xlen = xsize >> JFS_SBI(sb)->l2bsize; in jfs_symlink() 999 if ((rc = xtInsert(tid, ip, 0, 0, xlen, &xaddr, 0))) { in jfs_symlink() 1033 if (xlen) in jfs_symlink()
|
D | jfs_imap.c | 2454 int iagno, i, xlen; in diNewIAG() local 2520 xlen = sbi->nbperpage; in diNewIAG() 2521 if ((rc = dbAlloc(ipimap, 0, (s64) xlen, &xaddr))) { in diNewIAG() 2537 xtInsert(tid, ipimap, 0, blkno, xlen, &xaddr, 0))) { in diNewIAG() 2543 dbFree(ipimap, xaddr, (s64) xlen); in diNewIAG() 2608 duplicateIXtree(sb, blkno, xlen, &xaddr); in diNewIAG() 2994 int xlen, s64 *xaddr) in duplicateIXtree() argument 3021 if (xtInsert(tid, ip, 0, blkno, xlen, xaddr, 0)) { in duplicateIXtree()
|
/fs/cachefiles/ |
D | xattr.c | 164 ssize_t xlen; in cachefiles_check_auxdata() local 175 xlen = vfs_getxattr(dentry, cachefiles_xattr_cache, in cachefiles_check_auxdata() 178 if (xlen < 1 || in cachefiles_check_auxdata() 182 xlen--; in cachefiles_check_auxdata() 183 validity = fscache_check_aux(&object->fscache, &auxbuf->data, xlen); in cachefiles_check_auxdata()
|
/fs/ubifs/ |
D | journal.c | 1447 int err, xlen, hlen, len, lnum, xent_offs, aligned_xlen; in ubifs_jnl_delete_xattr() local 1464 xlen = UBIFS_DENT_NODE_SZ + nm->len + 1; in ubifs_jnl_delete_xattr() 1465 aligned_xlen = ALIGN(xlen, 8); in ubifs_jnl_delete_xattr() 1489 ubifs_prep_grp_node(c, xent, xlen, 0); in ubifs_jnl_delete_xattr() 1508 err = ubifs_add_dirt(c, lnum, xlen); in ubifs_jnl_delete_xattr()
|