diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-08-09 20:10:01 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-10 01:57:43 +0300 |
commit | d634525db63e9e946c3229fb93c8d9b763afbaf3 (patch) | |
tree | d021e49bd4c9b5dfc9fb1ef859c73a38c8bfb640 /fs/xfs/xfs_log.c | |
parent | 98fe2c3cef21b784e2efd1d9d891430d95b4f073 (diff) | |
download | linux-d634525db63e9e946c3229fb93c8d9b763afbaf3.tar.xz |
xfs: replace kmem_alloc_large() with kvmalloc()
There is no reason for this wrapper existing anymore. All the places
that use KM_NOFS allocation are within transaction contexts and
hence covered by memalloc_nofs_save/restore contexts. Hence we don't
need any special handling of vmalloc for large IOs anymore and
so special casing this code isn't necessary.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index fdc4d0636413..eb8341027cc7 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -1487,8 +1487,8 @@ xlog_alloc_log( iclog->ic_prev = prev_iclog; prev_iclog = iclog; - iclog->ic_data = kmem_alloc_large(log->l_iclog_size, - KM_MAYFAIL | KM_ZERO); + iclog->ic_data = kvzalloc(log->l_iclog_size, + GFP_KERNEL | __GFP_RETRY_MAYFAIL); if (!iclog->ic_data) goto out_free_iclog; #ifdef DEBUG |