/fs/jfs/ |
D | jfs_imap.c | 64 #define IAGFREE_LOCK_INIT(imap) mutex_init(&imap->im_freelock) argument 65 #define IAGFREE_LOCK(imap) mutex_lock(&imap->im_freelock) argument 66 #define IAGFREE_UNLOCK(imap) mutex_unlock(&imap->im_freelock) argument 69 #define AG_LOCK_INIT(imap,index) mutex_init(&(imap->im_aglock[index])) argument 70 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) argument 71 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) argument 86 static int diIAGRead(struct inomap * imap, int, struct metapage **); 109 struct inomap *imap; in diMount() local 118 imap = kmalloc(sizeof(struct inomap), GFP_KERNEL); in diMount() 119 if (imap == NULL) { in diMount() [all …]
|
D | super.c | 145 struct inomap *imap = JFS_IP(sbi->ipimap)->i_imap; in jfs_statfs() local 162 maxinodes = min((s64) atomic_read(&imap->im_numinos) + in jfs_statfs() 163 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs() 166 buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - in jfs_statfs() 167 atomic_read(&imap->im_numfree)); in jfs_statfs()
|
/fs/xfs/ |
D | xfs_iomap.c | 107 xfs_bmbt_irec_t *imap) in xfs_alert_fsblock_zero() argument 114 (unsigned long long)imap->br_startblock, in xfs_alert_fsblock_zero() 115 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero() 116 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero() 117 imap->br_state); in xfs_alert_fsblock_zero() 126 xfs_bmbt_irec_t *imap, in xfs_iomap_write_direct() argument 163 if (nmaps && (imap->br_startblock == HOLESTARTBLOCK)) in xfs_iomap_write_direct() 165 imap->br_blockcount + in xfs_iomap_write_direct() 166 imap->br_startoff); in xfs_iomap_write_direct() 225 &firstfsb, 0, imap, &nimaps, &free_list); in xfs_iomap_write_direct() [all …]
|
D | xfs_aops.c | 303 struct xfs_bmbt_irec *imap, in xfs_map_blocks() argument 336 imap, &nimaps, bmapi_flags); in xfs_map_blocks() 343 (!nimaps || isnullstartblock(imap->br_startblock))) { in xfs_map_blocks() 344 error = xfs_iomap_write_allocate(ip, offset, count, imap); in xfs_map_blocks() 346 trace_xfs_map_blocks_alloc(ip, offset, count, type, imap); in xfs_map_blocks() 353 ASSERT(imap->br_startblock != HOLESTARTBLOCK); in xfs_map_blocks() 354 ASSERT(imap->br_startblock != DELAYSTARTBLOCK); in xfs_map_blocks() 358 trace_xfs_map_blocks_found(ip, offset, count, type, imap); in xfs_map_blocks() 365 struct xfs_bmbt_irec *imap, in xfs_imap_valid() argument 370 return offset >= imap->br_startoff && in xfs_imap_valid() [all …]
|
D | xfs_file.c | 416 xfs_bmbt_irec_t imap; in xfs_zero_last_block() local 431 error = xfs_bmapi_read(ip, last_fsb, 1, &imap, &nimaps, 0); in xfs_zero_last_block() 439 if (imap.br_startblock == HOLESTARTBLOCK) { in xfs_zero_last_block() 485 xfs_bmbt_irec_t imap; in xfs_zero_eof() local 525 &imap, &nimaps, 0); in xfs_zero_eof() 532 if (imap.br_state == XFS_EXT_UNWRITTEN || in xfs_zero_eof() 533 imap.br_startblock == HOLESTARTBLOCK) { in xfs_zero_eof() 541 start_zero_fsb = imap.br_startoff + imap.br_blockcount; in xfs_zero_eof() 554 zero_len = XFS_FSB_TO_B(mp, imap.br_blockcount); in xfs_zero_eof() 564 start_zero_fsb = imap.br_startoff + imap.br_blockcount; in xfs_zero_eof()
|
D | xfs_vnodeops.c | 173 xfs_bmbt_irec_t imap; in xfs_free_eofblocks() local 187 error = xfs_bmapi_read(ip, end_fsb, map_len, &imap, &nimaps, 0); in xfs_free_eofblocks() 191 (imap.br_startblock != HOLESTARTBLOCK || in xfs_free_eofblocks() 1947 xfs_bmbt_irec_t imap; in xfs_zero_remaining_bytes() local 1978 error = xfs_bmapi_read(ip, offset_fsb, 1, &imap, &nimap, 0); in xfs_zero_remaining_bytes() 1981 ASSERT(imap.br_blockcount >= 1); in xfs_zero_remaining_bytes() 1982 ASSERT(imap.br_startoff == offset_fsb); in xfs_zero_remaining_bytes() 1983 lastoffset = XFS_FSB_TO_B(mp, imap.br_startoff + 1) - 1; in xfs_zero_remaining_bytes() 1986 if (imap.br_startblock == HOLESTARTBLOCK) in xfs_zero_remaining_bytes() 1988 ASSERT(imap.br_startblock != DELAYSTARTBLOCK); in xfs_zero_remaining_bytes() [all …]
|
D | xfs_ialloc.c | 1263 struct xfs_imap *imap, /* location map structure */ in xfs_imap() argument 1340 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_imap() 1341 imap->im_len = XFS_FSB_TO_BB(mp, 1); in xfs_imap() 1342 imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); in xfs_imap() 1368 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, cluster_agbno); in xfs_imap() 1369 imap->im_len = XFS_FSB_TO_BB(mp, blks_per_cluster); in xfs_imap() 1370 imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); in xfs_imap() 1378 if ((imap->im_blkno + imap->im_len) > in xfs_imap() 1382 __func__, (unsigned long long) imap->im_blkno, in xfs_imap() 1383 (unsigned long long) imap->im_len, in xfs_imap()
|
D | xfs_ialloc.h | 113 struct xfs_imap *imap, /* location map structure */
|
D | xfs_inode.c | 130 struct xfs_imap *imap, in xfs_imap_to_bp() argument 140 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, in xfs_imap_to_bp() 141 (int)imap->im_len, buf_flags, &bp); in xfs_imap_to_bp() 158 ni = BBTOB(imap->im_len) >> mp->m_sb.sb_inodelog; in xfs_imap_to_bp() 183 (unsigned long long)imap->im_blkno, i, in xfs_imap_to_bp() 220 struct xfs_imap imap; in xfs_inotobp() local 224 imap.im_blkno = 0; in xfs_inotobp() 225 error = xfs_imap(mp, tp, ino, &imap, imap_flags); in xfs_inotobp() 229 error = xfs_imap_to_bp(mp, tp, &imap, &bp, XBF_LOCK, imap_flags); in xfs_inotobp() 233 *dipp = (xfs_dinode_t *)xfs_buf_offset(bp, imap.im_boffset); in xfs_inotobp() [all …]
|
D | xfs_bmap.c | 6107 xfs_bmbt_irec_t imap; in xfs_bmap_punch_delalloc_range() local 6118 error = xfs_bmapi_read(ip, start_fsb, 1, &imap, &nimaps, in xfs_bmap_punch_delalloc_range() 6134 if (imap.br_startblock != DELAYSTARTBLOCK) { in xfs_bmap_punch_delalloc_range() 6138 WARN_ON(imap.br_blockcount == 0); in xfs_bmap_punch_delalloc_range()
|