linux-stable/include/linux/ceph
Ilya Dryomov eeb0bed557 libceph: add ceph_kv{malloc,free}() and switch to them
Encapsulate kmalloc vs vmalloc memory allocation and freeing logic into
two helpers, ceph_kvmalloc() and ceph_kvfree(), and switch to them.

ceph_kvmalloc() kmalloc()'s a maximum of 8 pages, anything bigger is
vmalloc()'ed with __GFP_HIGHMEM set.  This changes the existing
behaviour:

- for buffers (ceph_buffer_new()), from trying to kmalloc() everything
  and using vmalloc() just as a fallback

- for messages (ceph_msg_new()), from going to vmalloc() for anything
  bigger than a page

- for messages (ceph_msg_new()), from disallowing vmalloc() to use high
  memory

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-26 12:34:23 +02:00
..
auth.h libceph: wrap auth methods in a mutex 2013-05-01 21:17:15 -07:00
buffer.h libceph: add ceph_kv{malloc,free}() and switch to them 2014-01-26 12:34:23 +02:00
ceph_debug.h
ceph_features.h libceph: support CEPH_FEATURE_EXPORT_PEER 2014-01-21 16:30:31 +08:00
ceph_frag.h
ceph_fs.h ceph: remove exported caps when handling cap import message 2014-01-21 16:30:28 +08:00
ceph_hash.h
debugfs.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00
decode.h libceph: fix invalid unsigned->signed conversion for timespec encoding 2013-07-09 12:18:06 -07:00
libceph.h libceph: add ceph_kv{malloc,free}() and switch to them 2014-01-26 12:34:23 +02:00
mdsmap.h ceph: update support for PGID64, PGPOOL3, OSDENC protocol features 2013-02-26 15:02:25 -08:00
messenger.h libceph: add ceph_kv{malloc,free}() and switch to them 2014-01-26 12:34:23 +02:00
mon_client.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2012-10-08 06:38:18 +09:00
msgpool.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00
msgr.h libceph: implement RECONNECT_SEQ feature 2013-05-01 21:17:09 -07:00
osd_client.h libceph: block I/O when PAUSE or FULL osd map flags are set 2013-12-13 09:13:29 -08:00
osdmap.h libceph: define ceph_decode_pgid() only once 2013-05-01 21:17:52 -07:00
pagelist.h
rados.h libceph: update osd request/reply encoding 2013-02-26 15:02:50 -08:00
types.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00