]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define SWAP_FLAG_DISCARD.
authorUlrich Drepper <drepper@redhat.com>
Tue, 16 Nov 2010 17:17:04 +0000 (12:17 -0500)
committerPetr Baudis <pasky@suse.cz>
Sat, 20 Nov 2010 14:40:21 +0000 (15:40 +0100)
(cherry picked from commit a1fb5e3ebe9d38b5ae6c5bfbfaa04882d52355bc)

ChangeLog
sysdeps/unix/sysv/linux/sys/swap.h

index 1ef9fd52aa67c1daab2ac5ba2ba1b4c86712d0fe..7cffa7b403afe5aa8d7a442c1eb1ee070a6bae1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-16  Ulrich Drepper  <drepper@gmail.com>
+
+       * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
+
 2010-11-11  Andreas Schwab  <schwab@redhat.com>
 
        * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
index b6e7bef5d2f02545c4852ca3827bcd13e7b13104..961006cbbe687c7a4279a14a8253386eacb56865 100644 (file)
@@ -1,5 +1,5 @@
 /* Calls to enable and disable swapping on specified locations.  Linux version.
-   Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1998, 1999, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -28,6 +28,7 @@
 #define        SWAP_FLAG_PREFER        0x8000  /* Set if swap priority is specified. */
 #define        SWAP_FLAG_PRIO_MASK     0x7fff
 #define        SWAP_FLAG_PRIO_SHIFT    0
+#define SWAP_FLAG_DISCARD      0x10000 /* Discard swap cluster after use.  */
 
 __BEGIN_DECLS