History

mm: allow !GFP_KERNEL allocations for kvmalloc

Support for GFP_NO{FS,IO} and __GFP_NOFAIL has been implemented by previous patches so we can allow the support for kvmalloc. This will allow some external users to simplify or completely remove their helpers. GFP_NOWAIT semantic hasn't been supported so far but it hasn't been explicitly documented so let's add a note about that. ceph_kvmalloc is the first helper to be dropped and changed to kvmalloc.

Michal Hocko committed 4 years ago

Commit a421ef31 parent 30d3f018 files · +15 −50Browse files

Showing the changes to include (1 of 8 files). Show all

Unified · Split

include/linux/ceph/libceph.h+0−1
@@ -295,7 +295,6 @@ extern bool libceph_compatible(void *data); · 294 unmodified lines
295295
296296 extern const char *ceph_msg_type_name(int type);
297297 extern int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid);
298−extern void *ceph_kvmalloc(size_t size, gfp_t flags);
299298
300299 struct fs_parameter;
301300 struct fc_log;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t