aboutsummaryrefslogtreecommitdiffstats
path: root/extent_io.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-07-28 01:56:06 +0200
committerDavid Sterba <dsterba@suse.com>2016-07-28 14:08:30 +0200
commit002812542c29d51db6e1812b35a43540d21d418c (patch)
treedb880d07d9af13ea6c28e8fac07e387ad8fc0602 /extent_io.h
parent5407ee85fcaba91c9a0207ffad97a9b8b1c45c8c (diff)
downloadbtrfs-progs-002812542c29d51db6e1812b35a43540d21d418c.tar.gz
btrfs-progs-002812542c29d51db6e1812b35a43540d21d418c.tar.xz
btrfs-progs-002812542c29d51db6e1812b35a43540d21d418c.zip
btrfs-progs: update values of EXTENT_* bits
Make the values unsigned as we do various bit operations. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'extent_io.h')
-rw-r--r--extent_io.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/extent_io.h b/extent_io.h
index 61cba92..d9594c3 100644
--- a/extent_io.h
+++ b/extent_io.h
@@ -29,18 +29,18 @@
#include <btrfs/list.h>
#endif /* BTRFS_FLAT_INCLUDES */
-#define EXTENT_DIRTY 1
-#define EXTENT_WRITEBACK (1 << 1)
-#define EXTENT_UPTODATE (1 << 2)
-#define EXTENT_LOCKED (1 << 3)
-#define EXTENT_NEW (1 << 4)
-#define EXTENT_DELALLOC (1 << 5)
-#define EXTENT_DEFRAG (1 << 6)
-#define EXTENT_DEFRAG_DONE (1 << 7)
-#define EXTENT_BUFFER_FILLED (1 << 8)
-#define EXTENT_CSUM (1 << 9)
-#define EXTENT_BAD_TRANSID (1 << 10)
-#define EXTENT_BUFFER_DUMMY (1 << 11)
+#define EXTENT_DIRTY (1U << 0)
+#define EXTENT_WRITEBACK (1U << 1)
+#define EXTENT_UPTODATE (1U << 2)
+#define EXTENT_LOCKED (1U << 3)
+#define EXTENT_NEW (1U << 4)
+#define EXTENT_DELALLOC (1U << 5)
+#define EXTENT_DEFRAG (1U << 6)
+#define EXTENT_DEFRAG_DONE (1U << 7)
+#define EXTENT_BUFFER_FILLED (1U << 8)
+#define EXTENT_CSUM (1U << 9)
+#define EXTENT_BAD_TRANSID (1U << 10)
+#define EXTENT_BUFFER_DUMMY (1U << 11)
#define EXTENT_IOBITS (EXTENT_LOCKED | EXTENT_WRITEBACK)
#define BLOCK_GROUP_DATA (1U << 1)