]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - include/kmem.h
xfs: allocate xattr buffer on demand
[thirdparty/xfsprogs-dev.git] / include / kmem.h
index 572a4fafac7c30c18accb675ebd763d12608f091..0f48dc686d07fc3011f3e14f50fa4584c12be045 100644 (file)
@@ -1,25 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2008 Silicon Graphics, Inc.
  * All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write the Free Software Foundation,
- * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 #ifndef __KMEM_H__
 #define __KMEM_H__
 
-#define KM_SLEEP       0x0001u
-#define KM_NOSLEEP     0x0002u
 #define KM_NOFS                0x0004u
 #define KM_MAYFAIL     0x0008u
 #define KM_LARGE       0x0010u
@@ -43,6 +29,7 @@ kmem_zone_free(kmem_zone_t *zone, void *ptr)
 }
 
 extern void    *kmem_alloc(size_t, int);
+extern void    *kmem_alloc_large(size_t, int);
 extern void    *kmem_zalloc(size_t, int);
 
 static inline void