From 5fc94b05da91439d9f62e8d1098d463b1f548da4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 6 Jan 2017 13:46:34 +0100 Subject: compiler: Avoid redefinitions of __unused and __packed FreeBSD defines these in sys/cdefs.h Signed-off-by: Tobias Klauser --- compiler.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler.h b/compiler.h index 3559050..4180086 100644 --- a/compiler.h +++ b/compiler.h @@ -22,8 +22,12 @@ #ifdef __GNUC__ # define __noreturn __attribute__((noreturn)) # define __warn_unused_result __attribute__((warn_unused_result)) -# define __packed __attribute__((packed)) -# define __unused __attribute__((unused)) +# ifndef __packed +# define __packed __attribute__((packed)) +# endif +# ifndef __unused +# define __unused __attribute__((unused)) +# endif # ifndef offsetof # define offsetof(a, b) __builtin_offsetof(a, b) # endif -- cgit v1.2.3-54-g00ecf rm method='get'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-01-25 17:32:11 +0100
committerDavid Sterba <dsterba@suse.com>2016-02-11 16:15:43 +0100
commit50c2d5abe64c1726b48d292a2ab04f60e8238933 (patch)
tree46ef95353bb165cc1d2474cd68a95174c834c7cf /fs/btrfs
parentc479cb4f14f99868108da99568950e5311e1fe4c (diff)
btrfs: introduce key type for persistent permanent items
The number of distinct key types is not that big that we could waste one for something new we want to store in the tree. Similar to the temporary items, we'll introduce a new name for an existing key value and use the objectid for further extension. The victim is the BTRFS_DEV_STATS_KEY (248). The device stats are an example of a permanent item. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')