diff options
author | glebius <glebius@FreeBSD.org> | 2013-09-06 05:37:49 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-09-06 05:37:49 +0000 |
commit | 358d3d145a0923158cfe4823195e4c60f4e37249 (patch) | |
tree | 95660228ea128a00ac5ae55cbb3e3b550d776d01 /sys/mips/include/sf_buf.h | |
parent | 5110b054b22685516ac8b828fb0e43187ce8a532 (diff) | |
download | FreeBSD-src-358d3d145a0923158cfe4823195e4c60f4e37249.zip FreeBSD-src-358d3d145a0923158cfe4823195e4c60f4e37249.tar.gz |
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
Diffstat (limited to 'sys/mips/include/sf_buf.h')
-rw-r--r-- | sys/mips/include/sf_buf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/mips/include/sf_buf.h b/sys/mips/include/sf_buf.h index b9efaf0..00502a0 100644 --- a/sys/mips/include/sf_buf.h +++ b/sys/mips/include/sf_buf.h @@ -41,6 +41,18 @@ /* In 64 bit the whole memory is directly mapped */ 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) { |