Lines Matching refs:nmap
2150 int nmap, error, got, i, mapi; in xfs_da_grow_inode_int() local
2162 nmap = 1; in xfs_da_grow_inode_int()
2165 args->total, &map, &nmap); in xfs_da_grow_inode_int()
2169 ASSERT(nmap <= 1); in xfs_da_grow_inode_int()
2170 if (nmap == 1) { in xfs_da_grow_inode_int()
2173 } else if (nmap == 0 && count > 1) { in xfs_da_grow_inode_int()
2183 nmap = min(XFS_BMAP_MAX_NMAP, count); in xfs_da_grow_inode_int()
2187 args->total, &mapp[mapi], &nmap); in xfs_da_grow_inode_int()
2190 if (nmap < 1) in xfs_da_grow_inode_int()
2192 mapi += nmap; in xfs_da_grow_inode_int()
2595 int nmap = 1; in xfs_da_get_buf() local
2599 error = xfs_dabuf_map(dp, bno, 0, whichfork, &mapp, &nmap); in xfs_da_get_buf()
2600 if (error || nmap == 0) in xfs_da_get_buf()
2603 error = xfs_trans_get_buf_map(tp, mp->m_ddev_targp, mapp, nmap, 0, &bp); in xfs_da_get_buf()
2632 int nmap = 1; in xfs_da_read_buf() local
2636 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_read_buf()
2637 if (error || !nmap) in xfs_da_read_buf()
2640 error = xfs_trans_read_buf_map(mp, tp, mp->m_ddev_targp, mapp, nmap, 0, in xfs_da_read_buf()
2670 int nmap; in xfs_da_reada_buf() local
2674 nmap = 1; in xfs_da_reada_buf()
2675 error = xfs_dabuf_map(dp, bno, flags, whichfork, &mapp, &nmap); in xfs_da_reada_buf()
2676 if (error || !nmap) in xfs_da_reada_buf()
2679 xfs_buf_readahead_map(dp->i_mount->m_ddev_targp, mapp, nmap, ops); in xfs_da_reada_buf()