Lines Matching refs:nmap
2162 int nmap, error, got, i, mapi; in xfs_da_grow_inode_int() local
2174 nmap = 1; in xfs_da_grow_inode_int()
2177 args->total, &map, &nmap); in xfs_da_grow_inode_int()
2181 ASSERT(nmap <= 1); in xfs_da_grow_inode_int()
2182 if (nmap == 1) { in xfs_da_grow_inode_int()
2185 } else if (nmap == 0 && count > 1) { in xfs_da_grow_inode_int()
2195 nmap = min(XFS_BMAP_MAX_NMAP, count); in xfs_da_grow_inode_int()
2199 args->total, &mapp[mapi], &nmap); in xfs_da_grow_inode_int()
2202 if (nmap < 1) in xfs_da_grow_inode_int()
2204 mapi += nmap; in xfs_da_grow_inode_int()
2607 int nmap = 1; in xfs_da_get_buf() local
2611 error = xfs_dabuf_map(dp, bno, 0, whichfork, &mapp, &nmap); in xfs_da_get_buf()
2612 if (error || nmap == 0) in xfs_da_get_buf()
2615 error = xfs_trans_get_buf_map(tp, mp->m_ddev_targp, mapp, nmap, 0, &bp); in xfs_da_get_buf()
2644 int nmap = 1; in xfs_da_read_buf() local
2648 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_read_buf()
2649 if (error || !nmap) in xfs_da_read_buf()
2652 error = xfs_trans_read_buf_map(mp, tp, mp->m_ddev_targp, mapp, nmap, 0, in xfs_da_read_buf()
2682 int nmap; in xfs_da_reada_buf() local
2686 nmap = 1; in xfs_da_reada_buf()
2687 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_reada_buf()
2688 if (error || !nmap) in xfs_da_reada_buf()
2691 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()