diff options
| author | Sidhartha Kumar <sidhartha.kumar@oracle.com> | 2024-08-14 12:19:37 -0400 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-01 20:26:16 -0700 |
| commit | 1fd7c4f3228e9775c97b25a6e5e2420df8cf0e76 (patch) | |
| tree | 3c2b5d2fadb41c6e4d2bfade6d0121670c79f1f5 /include/linux | |
| parent | 580fcbd67ce2cdf9d70c7a8eda0789b9eba1c3af (diff) | |
maple_tree: convert mas_insert() to preallocate nodes
By setting the store type in mas_insert(), we no longer need to use
mas_wr_modify() to determine the correct store function to use. Instead,
set the store type and call mas_wr_store_entry(). Also, pass in the
requested gfp flags to mas_insert() so they can be passed to the call to
mas_wr_preallocate().
Link: https://lkml.kernel.org/r/20240814161944.55347-11-sidhartha.kumar@oracle.com
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
