From 358d3d145a0923158cfe4823195e4c60f4e37249 Mon Sep 17 00:00:00 2001 From: glebius Date: Fri, 6 Sep 2013 05:37:49 +0000 Subject: On those machines, where sf_bufs do not represent any real object, make sf_buf_alloc()/sf_buf_free() inlines, to save two calls to an absolutely empty functions. Reviewed by: alc, kib, scottl Sponsored by: Nginx, Inc. Sponsored by: Netflix --- sys/amd64/include/sf_buf.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/amd64/include') diff --git a/sys/amd64/include/sf_buf.h b/sys/amd64/include/sf_buf.h index b5245e6..729e8e5 100644 --- a/sys/amd64/include/sf_buf.h +++ b/sys/amd64/include/sf_buf.h @@ -41,6 +41,18 @@ */ struct sf_buf; +static inline struct sf_buf * +sf_buf_alloc(struct vm_page *m, int pri) +{ + + return ((struct sf_buf *)m); +} + +static inline void +sf_buf_free(struct sf_buf *sf) +{ +} + static __inline vm_offset_t sf_buf_kva(struct sf_buf *sf) { -- cgit v1.1