Commit 7efc3e34 authored by Omar Sandoval's avatar Omar Sandoval Committed by David Sterba

Btrfs: renumber BTRFS_INODE_ runtime flags and switch to enums

We got rid of BTRFS_INODE_HAS_ORPHAN_ITEM and
BTRFS_INODE_ORPHAN_META_RESERVED, so we can renumber the flags to make
them consecutive again.
Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
[ switch them enums so we don't have to do that again ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a575ceeb
...@@ -19,15 +19,17 @@ ...@@ -19,15 +19,17 @@
* ordered operations list so that we make sure to flush out any * ordered operations list so that we make sure to flush out any
* new data the application may have written before commit. * new data the application may have written before commit.
*/ */
#define BTRFS_INODE_ORDERED_DATA_CLOSE 0 enum {
#define BTRFS_INODE_DUMMY 2 BTRFS_INODE_ORDERED_DATA_CLOSE = 0,
#define BTRFS_INODE_IN_DEFRAG 3 BTRFS_INODE_DUMMY,
#define BTRFS_INODE_HAS_ASYNC_EXTENT 5 BTRFS_INODE_IN_DEFRAG,
#define BTRFS_INODE_NEEDS_FULL_SYNC 6 BTRFS_INODE_HAS_ASYNC_EXTENT,
#define BTRFS_INODE_COPY_EVERYTHING 7 BTRFS_INODE_NEEDS_FULL_SYNC,
#define BTRFS_INODE_IN_DELALLOC_LIST 8 BTRFS_INODE_COPY_EVERYTHING,
#define BTRFS_INODE_READDIO_NEED_LOCK 9 BTRFS_INODE_IN_DELALLOC_LIST,
#define BTRFS_INODE_HAS_PROPS 10 BTRFS_INODE_READDIO_NEED_LOCK,
BTRFS_INODE_HAS_PROPS,
};
/* in memory btrfs inode */ /* in memory btrfs inode */
struct btrfs_inode { struct btrfs_inode {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment