/fs/xfs/libxfs/ |
H A D | xfs_inode_buf.c | 163 struct xfs_imap *imap, 173 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, 174 (int)imap->im_len, buf_flags, &bp, 192 *dipp = (struct xfs_dinode *)xfs_buf_offset(bp, imap->im_boffset); 160 xfs_imap_to_bp( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_imap *imap, struct xfs_dinode **dipp, struct xfs_buf **bpp, uint buf_flags, uint iget_flags) argument
|
H A D | xfs_ialloc.c | 1795 * Return the location of the inode in imap, for mapping it into a buffer. 1802 struct xfs_imap *imap, /* location map structure */ 1879 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); 1880 imap->im_len = XFS_FSB_TO_BB(mp, 1); 1881 imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); 1907 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, cluster_agbno); 1908 imap->im_len = XFS_FSB_TO_BB(mp, blks_per_cluster); 1909 imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); 1917 if ((imap->im_blkno + imap 1798 xfs_imap( xfs_mount_t *mp, xfs_trans_t *tp, xfs_ino_t ino, struct xfs_imap *imap, uint flags) argument [all...] |
/fs/xfs/ |
H A D | xfs_iomap.c | 102 xfs_bmbt_irec_t *imap) 109 (unsigned long long)imap->br_startblock, 110 (unsigned long long)imap->br_startoff, 111 (unsigned long long)imap->br_blockcount, 112 imap->br_state); 121 xfs_bmbt_irec_t *imap, 153 if (nmaps && (imap->br_startblock == HOLESTARTBLOCK)) 155 imap->br_blockcount + 156 imap->br_startoff); 203 * From this point onwards we overwrite the imap pointe 100 xfs_alert_fsblock_zero( xfs_inode_t *ip, xfs_bmbt_irec_t *imap) argument 117 xfs_iomap_write_direct( xfs_inode_t *ip, xfs_off_t offset, size_t count, xfs_bmbt_irec_t *imap, int nmaps) argument 256 xfs_iomap_eof_want_preallocate( xfs_mount_t *mp, xfs_inode_t *ip, xfs_off_t offset, size_t count, xfs_bmbt_irec_t *imap, int nimaps, int *prealloc) argument 329 xfs_iomap_eof_prealloc_initial_size( struct xfs_mount *mp, struct xfs_inode *ip, xfs_off_t offset, xfs_bmbt_irec_t *imap, int nimaps) argument 440 xfs_iomap_prealloc_size( struct xfs_mount *mp, struct xfs_inode *ip, xfs_off_t offset, struct xfs_bmbt_irec *imap, int nimaps) argument 551 xfs_bmbt_irec_t imap[XFS_WRITE_IMAPS]; local 653 xfs_iomap_write_allocate( xfs_inode_t *ip, xfs_off_t offset, xfs_bmbt_irec_t *imap) argument 820 xfs_bmbt_irec_t imap; local [all...] |
H A D | xfs_file.c | 374 struct xfs_bmbt_irec imap; local 377 error = xfs_bmapi_read(ip, last_fsb, 1, &imap, &nimaps, 0); 388 if (imap.br_startblock == HOLESTARTBLOCK) 423 struct xfs_bmbt_irec imap; local 467 &imap, &nimaps, 0); 474 if (imap.br_state == XFS_EXT_UNWRITTEN || 475 imap.br_startblock == HOLESTARTBLOCK) { 476 start_zero_fsb = imap.br_startoff + imap.br_blockcount; 485 zero_len = XFS_FSB_TO_B(mp, imap [all...] |
H A D | xfs_aops.c | 298 struct xfs_bmbt_irec *imap, 331 imap, &nimaps, bmapi_flags); 338 (!nimaps || isnullstartblock(imap->br_startblock))) { 339 error = xfs_iomap_write_allocate(ip, offset, imap); 341 trace_xfs_map_blocks_alloc(ip, offset, count, type, imap); 348 ASSERT(imap->br_startblock != HOLESTARTBLOCK); 349 ASSERT(imap->br_startblock != DELAYSTARTBLOCK); 353 trace_xfs_map_blocks_found(ip, offset, count, type, imap); 360 struct xfs_bmbt_irec *imap, 365 return offset >= imap 295 xfs_map_blocks( struct inode *inode, loff_t offset, struct xfs_bmbt_irec *imap, int type, int nonblocking) argument 358 xfs_imap_valid( struct inode *inode, struct xfs_bmbt_irec *imap, xfs_off_t offset) argument 614 xfs_map_buffer( struct inode *inode, struct buffer_head *bh, struct xfs_bmbt_irec *imap, xfs_off_t offset) argument 638 xfs_map_at_offset( struct inode *inode, struct buffer_head *bh, struct xfs_bmbt_irec *imap, xfs_off_t offset) argument 703 xfs_convert_page( struct inode *inode, struct page *page, loff_t tindex, struct xfs_bmbt_irec *imap, xfs_ioend_t **ioendp, struct writeback_control *wbc) argument 843 xfs_cluster_write( struct inode *inode, pgoff_t tindex, struct xfs_bmbt_irec *imap, xfs_ioend_t **ioendp, struct writeback_control *wbc, pgoff_t tlast) argument 964 struct xfs_bmbt_irec imap; local 1268 struct xfs_bmbt_irec imap; local [all...] |
H A D | xfs_bmap_util.c | 741 xfs_bmbt_irec_t imap; local 752 error = xfs_bmapi_read(ip, start_fsb, 1, &imap, &nimaps, 768 if (imap.br_startblock != DELAYSTARTBLOCK) { 772 WARN_ON(imap.br_blockcount == 0); 848 xfs_bmbt_irec_t imap; local 862 error = xfs_bmapi_read(ip, end_fsb, map_len, &imap, &nimaps, 0); 866 (imap.br_startblock != HOLESTARTBLOCK || 1105 xfs_bmbt_irec_t imap; local 1132 error = xfs_bmapi_read(ip, offset_fsb, 1, &imap, &nimap, 0); 1137 ASSERT(imap 1180 xfs_bmbt_irec_t imap; local [all...] |
H A D | xfs_inode.c | 2103 struct xfs_imap imap; local 2108 imap.im_blkno = 0; 2111 error = xfs_imap(mp, tp, next_ino, &imap, 0); 2119 error = xfs_imap_to_bp(mp, tp, &imap, &last_dip, 2128 last_offset = imap.im_boffset;
|
/fs/jfs/ |
H A D | super.c | 150 struct inomap *imap = JFS_IP(sbi->ipimap)->i_imap; local 164 * buf->f_files = atomic_read(&imap->im_numinos); 165 * buf->f_ffree = atomic_read(&imap->im_numfree); 167 maxinodes = min((s64) atomic_read(&imap->im_numinos) + 168 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) 171 buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - 172 atomic_read(&imap->im_numfree));
|
H A D | jfs_imap.c | 61 * imap locks 64 #define IAGFREE_LOCK_INIT(imap) mutex_init(&imap->im_freelock) 65 #define IAGFREE_LOCK(imap) mutex_lock(&imap->im_freelock) 66 #define IAGFREE_UNLOCK(imap) mutex_unlock(&imap->im_freelock) 69 #define AG_LOCK_INIT(imap,index) mutex_init(&(imap->im_aglock[index])) 70 #define AG_LOCK(imap,agn 109 struct inomap *imap; local 193 struct inomap *imap = JFS_IP(ipimap)->i_imap; local 313 struct inomap *imap; local 873 struct inomap *imap = JFS_IP(ipimap)->i_imap; local 1350 struct inomap *imap; local 1649 diAllocAG(struct inomap * imap, int agno, bool dir, struct inode *ip) argument 1719 diAllocAny(struct inomap * imap, int agno, bool dir, struct inode *ip) argument 1783 diAllocIno(struct inomap * imap, int agno, struct inode *ip) argument 1907 diAllocExt(struct inomap * imap, int agno, struct inode *ip) argument 2024 diAllocBit(struct inomap * imap, struct iag * iagp, int ino) argument 2170 diNewExt(struct inomap * imap, struct iag * iagp, int extno) argument 2452 diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) argument 2675 diIAGRead(struct inomap * imap, int iagno, struct metapage ** mpp) argument 2744 struct inomap *imap; local 2862 struct inomap *imap = JFS_IP(ipimap)->i_imap; local [all...] |