summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/check-integrity.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2017-07-29 17:50:09 +0800
committerDavid Sterba <dsterba@suse.com>2017-08-18 16:36:29 +0200
commit44880fdc91bc4f6730e37f2cb6025b35c70b312d (patch)
tree60f7638eb4ebd353bd7defc742b565b475e90376 /fs/btrfs/check-integrity.c
parent42e9cc46fbe86f83278c14f5d88f353d037258d2 (diff)
downloadlinux-stable-44880fdc91bc4f6730e37f2cb6025b35c70b312d.tar.gz
linux-stable-44880fdc91bc4f6730e37f2cb6025b35c70b312d.tar.bz2
linux-stable-44880fdc91bc4f6730e37f2cb6025b35c70b312d.zip
btrfs: use appropriate define for the fsid
Though BTRFS_FSID_SIZE and BTRFS_UUID_SIZE are of the same size, we should use the matching constant for the fsid buffer. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/check-integrity.c')
-rw-r--r--fs/btrfs/check-integrity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c
index 7d65d98d2790..7b9aabc2cb78 100644
--- a/fs/btrfs/check-integrity.c
+++ b/fs/btrfs/check-integrity.c
@@ -1732,7 +1732,7 @@ static int btrfsic_test_for_metadata(struct btrfsic_state *state,
num_pages = state->metablock_size >> PAGE_SHIFT;
h = (struct btrfs_header *)datav[0];
- if (memcmp(h->fsid, fs_info->fsid, BTRFS_UUID_SIZE))
+ if (memcmp(h->fsid, fs_info->fsid, BTRFS_FSID_SIZE))
return 1;
for (i = 0; i < num_pages; i++) {