diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-05-27 03:27:19 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-05-27 03:27:19 +0300 |
commit | 910bbdf2f4d7df46781bc9b723048f5ebed3d0d7 (patch) | |
tree | 8a79c9bf094fc6d446e310df1d2e2f3159074ab6 /fs/xfs/libxfs | |
parent | 8db074bd84df5ccc88bff3f8f900f66f4b8349fa (diff) | |
download | linux-910bbdf2f4d7df46781bc9b723048f5ebed3d0d7.tar.xz |
xfs: convert buf_cancel_table allocation to kmalloc_array
While we're messing around with how recovery allocates and frees the
buffer cancellation table, convert the allocation to use kmalloc_array
instead of the old kmem_alloc APIs, and make it handle a null return,
even though that's not likely.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_log_recover.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_log_recover.h b/fs/xfs/libxfs/xfs_log_recover.h index cc36ef9f5df5..2420865f3007 100644 --- a/fs/xfs/libxfs/xfs_log_recover.h +++ b/fs/xfs/libxfs/xfs_log_recover.h @@ -122,7 +122,7 @@ int xlog_recover_iget(struct xfs_mount *mp, xfs_ino_t ino, struct xfs_inode **ipp); void xlog_recover_release_intent(struct xlog *log, unsigned short intent_type, uint64_t intent_id); -void xlog_alloc_buf_cancel_table(struct xlog *log); +int xlog_alloc_buf_cancel_table(struct xlog *log); void xlog_free_buf_cancel_table(struct xlog *log); #ifdef DEBUG |