aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_log_priv.h
diff options
context:
space:
mode:
authorGravatar Carlos Maiolino <cmaiolino@redhat.com> 2020-07-22 09:23:17 -0700
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2020-07-28 20:24:14 -0700
commitca4f2589905954b155e920b543e13a370d578511 (patch)
tree48b4fd53cf61c9c3f708a3a5aa1062060da2c2d7 /fs/xfs/xfs_log_priv.h
parentxfs: Remove kmem_zone_zalloc() usage (diff)
downloadlinux-ca4f2589905954b155e920b543e13a370d578511.tar.gz
linux-ca4f2589905954b155e920b543e13a370d578511.tar.bz2
linux-ca4f2589905954b155e920b543e13a370d578511.zip
xfs: Modify xlog_ticket_alloc() to use kernel's MM API
xlog_ticket_alloc() is always called under NOFS context, except from unmount path, which eitherway is holding many FS locks, so, there is no need for its callers to keep passing allocation flags into it. change xlog_ticket_alloc() to use default kmem_cache_zalloc(), remove its alloc_flags argument, and always use GFP_NOFS | __GFP_NOFAIL flags. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r--fs/xfs/xfs_log_priv.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h
index 75a62870b63a..1c6fdbf3d506 100644
--- a/fs/xfs/xfs_log_priv.h
+++ b/fs/xfs/xfs_log_priv.h
@@ -464,9 +464,7 @@ xlog_ticket_alloc(
int unit_bytes,
int count,
char client,
- bool permanent,
- xfs_km_flags_t alloc_flags);
-
+ bool permanent);
static inline void
xlog_write_adv_cnt(void **ptr, int *len, int *off, size_t bytes)