summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-02-25 15:47:32 +0100
committerDavid Sterba <dsterba@suse.cz>2015-03-03 17:23:59 +0100
commit3284da7b7b585e6e8e98f374a51d234d14c7a0a2 (patch)
tree64babc4e0036884b69bc61e7866cc2056e258124 /fs/btrfs/ioctl.c
parentbtrfs: remove shadowing variables in __btrfs_buffered_write (diff)
downloadlinux-3284da7b7b585e6e8e98f374a51d234d14c7a0a2.tar.xz
linux-3284da7b7b585e6e8e98f374a51d234d14c7a0a2.zip
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/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index d49fe8a0f6b5..0a9fe214deeb 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -3039,7 +3039,7 @@ out:
static int check_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
u64 disko)
{
- struct seq_list tree_mod_seq_elem = {};
+ struct seq_list tree_mod_seq_elem = SEQ_LIST_INIT(tree_mod_seq_elem);
struct ulist *roots;
struct ulist_iterator uiter;
struct ulist_node *root_node = NULL;