13a690f1eSFrançois Tigeot /* 23a690f1eSFrançois Tigeot * Copyright (c) 2015 François Tigeot 33a690f1eSFrançois Tigeot * All rights reserved. 43a690f1eSFrançois Tigeot * 53a690f1eSFrançois Tigeot * Redistribution and use in source and binary forms, with or without 63a690f1eSFrançois Tigeot * modification, are permitted provided that the following conditions 73a690f1eSFrançois Tigeot * are met: 83a690f1eSFrançois Tigeot * 1. Redistributions of source code must retain the above copyright 93a690f1eSFrançois Tigeot * notice unmodified, this list of conditions, and the following 103a690f1eSFrançois Tigeot * disclaimer. 113a690f1eSFrançois Tigeot * 2. Redistributions in binary form must reproduce the above copyright 123a690f1eSFrançois Tigeot * notice, this list of conditions and the following disclaimer in the 133a690f1eSFrançois Tigeot * documentation and/or other materials provided with the distribution. 143a690f1eSFrançois Tigeot * 153a690f1eSFrançois Tigeot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 163a690f1eSFrançois Tigeot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 173a690f1eSFrançois Tigeot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 183a690f1eSFrançois Tigeot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 193a690f1eSFrançois Tigeot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 203a690f1eSFrançois Tigeot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 213a690f1eSFrançois Tigeot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 223a690f1eSFrançois Tigeot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 233a690f1eSFrançois Tigeot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 243a690f1eSFrançois Tigeot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 253a690f1eSFrançois Tigeot */ 263a690f1eSFrançois Tigeot 273a690f1eSFrançois Tigeot #ifndef _LINUX_SWAP_H_ 283a690f1eSFrançois Tigeot #define _LINUX_SWAP_H_ 293a690f1eSFrançois Tigeot 303a690f1eSFrançois Tigeot #include <vm/vm_page2.h> 313a690f1eSFrançois Tigeot 32*8b1a6a38SFrançois Tigeot #include <asm/page.h> 33*8b1a6a38SFrançois Tigeot 343a690f1eSFrançois Tigeot static inline void mark_page_accessed(struct vm_page *m) 353a690f1eSFrançois Tigeot { 363a690f1eSFrançois Tigeot vm_page_flag_set(m, PG_REFERENCED); 373a690f1eSFrançois Tigeot } 383a690f1eSFrançois Tigeot 393a690f1eSFrançois Tigeot #endif /* _LINUX_SWAP_H_ */ 40