diff options
| author | Carlos Maiolino <[email protected]> | 2020-09-01 18:47:12 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2020-09-16 03:52:41 +0000 |
| commit | 8ca79df85b7f98be4dcd3f66de07d4973206dbc9 (patch) | |
| tree | e023e5740534a1b4626813b5468eea10a6fd4a7a /fs/xfs/xfs_rtalloc.c | |
| parent | xfs: enable big timestamps (diff) | |
| download | kernel-8ca79df85b7f98be4dcd3f66de07d4973206dbc9.tar.gz kernel-8ca79df85b7f98be4dcd3f66de07d4973206dbc9.zip | |
xfs: Remove kmem_zalloc_large()
This patch aims to replace kmem_zalloc_large() with global kernel memory
API. So, all its callers are now using kvzalloc() directly, so kmalloc()
fallsback to vmalloc() automatically.
Signed-off-by: Carlos Maiolino <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
| -rw-r--r-- | fs/xfs/xfs_rtalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 6209e7b6b895..0558f92ecdb8 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c @@ -862,7 +862,7 @@ xfs_alloc_rsum_cache( * lower bound on the minimum level with any free extents. We can * continue without the cache if it couldn't be allocated. */ - mp->m_rsum_cache = kmem_zalloc_large(rbmblocks, 0); + mp->m_rsum_cache = kvzalloc(rbmblocks, GFP_KERNEL); if (!mp->m_rsum_cache) xfs_warn(mp, "could not allocate realtime summary cache"); } |
