diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-12-26 06:07:05 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 22:20:08 +0100 |
commit | 7cf35d91b4f143b5c7529976bf5e7573a07051cd (patch) | |
tree | 9a6b5663009bdf5812018d1d7587147478875bfd /fs/btrfs/delayed-inode.h | |
parent | Btrfs: remove btrfs_end_transaction_dmeta() (diff) | |
download | linux-7cf35d91b4f143b5c7529976bf5e7573a07051cd.tar.xz linux-7cf35d91b4f143b5c7529976bf5e7573a07051cd.zip |
Btrfs: use flags instead of the bool variants in delayed node
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.h')
-rw-r--r-- | fs/btrfs/delayed-inode.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/delayed-inode.h b/fs/btrfs/delayed-inode.h index a4b38f934d14..a6a13f7e014d 100644 --- a/fs/btrfs/delayed-inode.h +++ b/fs/btrfs/delayed-inode.h @@ -48,6 +48,9 @@ struct btrfs_delayed_root { wait_queue_head_t wait; }; +#define BTRFS_DELAYED_NODE_IN_LIST 0 +#define BTRFS_DELAYED_NODE_INODE_DIRTY 1 + struct btrfs_delayed_node { u64 inode_id; u64 bytes_reserved; @@ -65,8 +68,7 @@ struct btrfs_delayed_node { struct btrfs_inode_item inode_item; atomic_t refs; u64 index_cnt; - bool in_list; - bool inode_dirty; + unsigned long flags; int count; }; |