svn commit: r274517 - projects/sendfile/sys/vm

Garrett Cooper yaneurabeya at gmail.com
Fri Nov 14 18:17:38 UTC 2014


On Nov 14, 2014, at 10:01, Gleb Smirnoff <glebius at freebsd.org> wrote:

> Author: glebius
> Date: Fri Nov 14 18:01:18 2014
> New Revision: 274517
> URL: https://svnweb.freebsd.org/changeset/base/274517
> 
> Log:
>  Use C99 "inline" keyword.
> 
> Modified:
>  projects/sendfile/sys/vm/vm_pager.h
> 
> Modified: projects/sendfile/sys/vm/vm_pager.h
> ==============================================================================
> --- projects/sendfile/sys/vm/vm_pager.h	Fri Nov 14 18:00:00 2014	(r274516)
> +++ projects/sendfile/sys/vm/vm_pager.h	Fri Nov 14 18:01:18 2014	(r274517)
> @@ -106,7 +106,7 @@ vm_object_t vm_pager_allocate(objtype_t,
> void vm_pager_bufferinit(void);
> void vm_pager_deallocate(vm_object_t);
> static __inline int vm_pager_get_pages(vm_object_t, vm_page_t *, int, int);
> -static __inline int vm_pager_get_pages_async(vm_object_t, vm_page_t *, int,
> +static inline int vm_pager_get_pages_async(vm_object_t, vm_page_t *, int,
>     int, void(*)(void *, int), void *);
> static __inline boolean_t vm_pager_has_page(vm_object_t, vm_pindex_t, int *, int *);
> void vm_pager_init(void);
> @@ -138,7 +138,7 @@ vm_pager_get_pages(
> 	return (r);
> }

- What was wrong with using the "non-C99" constant?
- Why not the other cases above that, e.g. vm_pager_get_pages?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20141114/42d0f3ff/attachment.sig>


More information about the svn-src-projects mailing list