diff options
author | David Sterba <dsterba@suse.cz> | 2015-02-25 17:47:32 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-03-03 19:23:59 +0300 |
commit | 3284da7b7b585e6e8e98f374a51d234d14c7a0a2 (patch) | |
tree | 64babc4e0036884b69bc61e7866cc2056e258124 /fs/btrfs/ctree.h | |
parent | f64c7b12f86c638f13e19de08eeb8cf888dff8f6 (diff) | |
download | linux-3284da7b7b585e6e8e98f374a51d234d14c7a0a2.tar.xz |
btrfs: use explicit initializer for seq_elem
Using {} as initializer for struct seq_elem does not properly initialize
the list_head member, but it currently works because it gets set through
btrfs_get_tree_mod_seq if 'seq' is 0.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index b3dd55f52f71..36e009ebab47 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1328,6 +1328,8 @@ struct seq_list { u64 seq; }; +#define SEQ_LIST_INIT(name) { .list = LIST_HEAD_INIT((name).list), .seq = 0 } + enum btrfs_orphan_cleanup_state { ORPHAN_CLEANUP_STARTED = 1, ORPHAN_CLEANUP_DONE = 2, |