Home
last modified time | relevance | path

Searched refs:imap (Results 1 – 19 of 19) sorted by relevance

/fs/jfs/
Djfs_imap.c51 #define IAGFREE_LOCK_INIT(imap) mutex_init(&imap->im_freelock) argument
52 #define IAGFREE_LOCK(imap) mutex_lock(&imap->im_freelock) argument
53 #define IAGFREE_UNLOCK(imap) mutex_unlock(&imap->im_freelock) argument
56 #define AG_LOCK_INIT(imap,index) mutex_init(&(imap->im_aglock[index])) argument
57 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) argument
58 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) argument
73 static int diIAGRead(struct inomap * imap, int, struct metapage **);
96 struct inomap *imap; in diMount() local
105 imap = kmalloc(sizeof(struct inomap), GFP_KERNEL); in diMount()
106 if (imap == NULL) in diMount()
[all …]
Dsuper.c124 struct inomap *imap = JFS_IP(sbi->ipimap)->i_imap; in jfs_statfs() local
141 maxinodes = min((s64) atomic_read(&imap->im_numinos) + in jfs_statfs()
142 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs()
145 buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - in jfs_statfs()
146 atomic_read(&imap->im_numfree)); in jfs_statfs()
/fs/xfs/
Dxfs_iomap.c38 xfs_bmbt_irec_t *imap) in xfs_alert_fsblock_zero() argument
45 (unsigned long long)imap->br_startblock, in xfs_alert_fsblock_zero()
46 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero()
47 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero()
48 imap->br_state); in xfs_alert_fsblock_zero()
56 struct xfs_bmbt_irec *imap, in xfs_bmbt_to_iomap() argument
62 if (unlikely(!xfs_valid_startblock(ip, imap->br_startblock))) in xfs_bmbt_to_iomap()
63 return xfs_alert_fsblock_zero(ip, imap); in xfs_bmbt_to_iomap()
65 if (imap->br_startblock == HOLESTARTBLOCK) { in xfs_bmbt_to_iomap()
68 } else if (imap->br_startblock == DELAYSTARTBLOCK || in xfs_bmbt_to_iomap()
[all …]
Dxfs_reflink.c227 struct xfs_bmbt_irec *imap, in xfs_bmap_trim_cow() argument
232 !isnullstartblock(imap->br_startblock)) { in xfs_bmap_trim_cow()
238 return xfs_reflink_trim_around_shared(ip, imap, shared); in xfs_bmap_trim_cow()
308 struct xfs_bmbt_irec *imap, in xfs_find_trim_cow_extent() argument
313 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent()
314 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent()
326 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent()
327 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent()
328 return xfs_bmap_trim_cow(ip, imap, shared); in xfs_find_trim_cow_extent()
333 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
[all …]
Dxfs_aops.c267 struct xfs_bmbt_irec imap; in xfs_map_blocks() local
310 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks()
311 cow_fsb = imap.br_startoff; in xfs_map_blocks()
334 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
335 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks()
340 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks()
341 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
342 imap.br_startoff = offset_fsb; in xfs_map_blocks()
343 imap.br_startblock = HOLESTARTBLOCK; in xfs_map_blocks()
344 imap.br_state = XFS_EXT_NORM; in xfs_map_blocks()
[all …]
Dxfs_pnfs.c87 struct xfs_bmbt_irec imap; in xfs_fs_map_blocks() local
144 &imap, &nimaps, bmapi_flags); in xfs_fs_map_blocks()
146 ASSERT(!nimaps || imap.br_startblock != DELAYSTARTBLOCK); in xfs_fs_map_blocks()
149 (!nimaps || imap.br_startblock == HOLESTARTBLOCK)) { in xfs_fs_map_blocks()
152 else if (nimaps && imap.br_startblock == HOLESTARTBLOCK) in xfs_fs_map_blocks()
153 end_fsb = min(end_fsb, imap.br_startoff + in xfs_fs_map_blocks()
154 imap.br_blockcount); in xfs_fs_map_blocks()
158 end_fsb - offset_fsb, &imap); in xfs_fs_map_blocks()
178 error = xfs_bmbt_to_iomap(ip, iomap, &imap, 0); in xfs_fs_map_blocks()
194 struct xfs_bmbt_irec imap; in xfs_pnfs_validate_isize() local
[all …]
Dxfs_reflink.h24 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap,
27 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap,
Dxfs_inode.c2068 struct xfs_imap *imap, in xfs_iunlink_update_dinode() argument
2080 offset = imap->im_boffset + in xfs_iunlink_update_dinode()
2225 struct xfs_imap *imap, in xfs_iunlink_map_ino() argument
2232 imap->im_blkno = 0; in xfs_iunlink_map_ino()
2233 error = xfs_imap(mp, tp, XFS_AGINO_TO_INO(mp, agno, agino), imap, 0); in xfs_iunlink_map_ino()
2240 error = xfs_imap_to_bp(mp, tp, imap, bpp); in xfs_iunlink_map_ino()
2247 *dipp = xfs_buf_offset(*bpp, imap->im_boffset); in xfs_iunlink_map_ino()
2268 struct xfs_imap *imap, in xfs_iunlink_map_prev() argument
2282 error = xfs_iunlink_map_ino(tp, pag->pag_agno, *agino, imap, in xfs_iunlink_map_prev()
2310 error = xfs_iunlink_map_ino(tp, pag->pag_agno, next_agino, imap, in xfs_iunlink_map_prev()
[all …]
Dxfs_iomap.h15 xfs_fileoff_t count_fsb, struct xfs_bmbt_irec *imap);
Dxfs_bmap_util.c644 struct xfs_bmbt_irec imap; in xfs_can_free_eofblocks() local
698 error = xfs_bmapi_read(ip, end_fsb, last_fsb - end_fsb, &imap, &nimaps, in xfs_can_free_eofblocks()
708 return imap.br_startblock != HOLESTARTBLOCK || ip->i_delayed_blks; in xfs_can_free_eofblocks()
/fs/xfs/scrub/
Dialloc.c213 struct xfs_imap imap; in xchk_iallocbt_check_cluster() local
245 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xchk_iallocbt_check_cluster()
246 imap.im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster); in xchk_iallocbt_check_cluster()
247 imap.im_boffset = XFS_INO_TO_OFFSET(mp, irec->ir_startino) << in xchk_iallocbt_check_cluster()
250 if (imap.im_boffset != 0 && cluster_base != 0) { in xchk_iallocbt_check_cluster()
251 ASSERT(imap.im_boffset == 0 || cluster_base == 0); in xchk_iallocbt_check_cluster()
257 imap.im_blkno, imap.im_len, cluster_base, nr_inodes, in xchk_iallocbt_check_cluster()
280 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &cluster_bp); in xchk_iallocbt_check_cluster()
288 if (imap.im_boffset >= BBTOB(cluster_bp->b_length)) { in xchk_iallocbt_check_cluster()
293 dip = xfs_buf_offset(cluster_bp, imap.im_boffset); in xchk_iallocbt_check_cluster()
[all …]
Dcommon.c643 struct xfs_imap imap; in xchk_get_inode() local
680 error = xfs_imap(sc->mp, sc->tp, sc->sm->sm_ino, &imap, in xchk_get_inode()
/fs/xfs/libxfs/
Dxfs_rmap.h169 int whichfork, struct xfs_bmbt_irec *imap);
171 int whichfork, struct xfs_bmbt_irec *imap);
174 struct xfs_bmbt_irec *imap);
Dxfs_bmap.h270 struct xfs_bmbt_irec *imap);
272 struct xfs_bmbt_irec *imap);
Dxfs_ialloc.c2269 struct xfs_imap *imap, /* location map structure */ in xfs_imap() argument
2345 imap->im_blkno = XFS_AGB_TO_DADDR(mp, pag->pag_agno, agbno); in xfs_imap()
2346 imap->im_len = XFS_FSB_TO_BB(mp, 1); in xfs_imap()
2347 imap->im_boffset = (unsigned short)(offset << in xfs_imap()
2376 imap->im_blkno = XFS_AGB_TO_DADDR(mp, pag->pag_agno, cluster_agbno); in xfs_imap()
2377 imap->im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster); in xfs_imap()
2378 imap->im_boffset = (unsigned short)(offset << mp->m_sb.sb_inodelog); in xfs_imap()
2386 if ((imap->im_blkno + imap->im_len) > in xfs_imap()
2390 __func__, (unsigned long long) imap->im_blkno, in xfs_imap()
2391 (unsigned long long) imap->im_len, in xfs_imap()
Dxfs_inode_buf.h23 struct xfs_imap *imap, struct xfs_buf **bpp);
Dxfs_inode_buf.c133 struct xfs_imap *imap, in xfs_imap_to_bp() argument
136 return xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, in xfs_imap_to_bp()
137 imap->im_len, XBF_UNMAPPED, bpp, in xfs_imap_to_bp()
Dxfs_ialloc.h53 struct xfs_imap *imap, /* location map structure */
Dxfs_attr.c90 struct xfs_bmbt_irec imap; in xfs_attr_is_leaf() local
96 xfs_iext_get_extent(ifp, &icur, &imap); in xfs_attr_is_leaf()
97 return imap.br_startoff == 0 && imap.br_blockcount == 1; in xfs_attr_is_leaf()