]> asedeno.scripts.mit.edu Git - linux.git/commit
9p: embed fcall in req to round down buffer allocs
authorDominique Martinet <dominique.martinet@cea.fr>
Mon, 30 Jul 2018 05:55:19 +0000 (05:55 +0000)
committerDominique Martinet <dominique.martinet@cea.fr>
Fri, 7 Sep 2018 16:39:45 +0000 (01:39 +0900)
commit523adb6cc10b48655c0abe556505240741425b49
tree16af209a90fefd0e5b6a0dd25ddfbca9ca4530fe
parent6348b903d79119a8157aace08ab99521f5dba139
9p: embed fcall in req to round down buffer allocs

'msize' is often a power of two, or at least page-aligned, so avoiding
an overhead of two dozen bytes for each allocation will help the
allocator do its work and reduce memory fragmentation.

Link: http://lkml.kernel.org/r/1533825236-22896-1-git-send-email-asmadeus@codewreck.org
Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Jun Piao <piaojun@huawei.com>
Cc: Matthew Wilcox <willy@infradead.org>
include/net/9p/client.h
net/9p/client.c
net/9p/trans_fd.c
net/9p/trans_rdma.c
net/9p/trans_virtio.c
net/9p/trans_xen.c