diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-10-27 23:45:22 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-08 21:59:41 +0300 |
commit | e1711fe3fd59fa1e34e02add2e9c188441c12021 (patch) | |
tree | 6cabe5ace2177a4caba9dbe6b2e1399dc544bd7e /fs/dlm/memory.c | |
parent | 61bed0baa4dba17dd06cdfe20481a580718d6c7c (diff) | |
download | linux-e1711fe3fd59fa1e34e02add2e9c188441c12021.tar.xz |
fs: dlm: allow different allocation context per _create_message
This patch allows to give the use control about the allocation context
based on a per message basis. Currently all messages forced to be
created under GFP_NOFS context.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/memory.c')
-rw-r--r-- | fs/dlm/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c index 61fe0d1f5646..eb7a08641fcf 100644 --- a/fs/dlm/memory.c +++ b/fs/dlm/memory.c @@ -134,9 +134,9 @@ void dlm_free_lkb(struct dlm_lkb *lkb) kmem_cache_free(lkb_cache, lkb); } -struct dlm_mhandle *dlm_allocate_mhandle(void) +struct dlm_mhandle *dlm_allocate_mhandle(gfp_t allocation) { - return kmem_cache_alloc(mhandle_cache, GFP_NOFS); + return kmem_cache_alloc(mhandle_cache, allocation); } void dlm_free_mhandle(struct dlm_mhandle *mhandle) |