diff options
author | Anand Jain <anand.jain@oracle.com> | 2017-07-29 17:50:09 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-18 16:36:29 +0200 |
commit | 44880fdc91bc4f6730e37f2cb6025b35c70b312d (patch) | |
tree | 60f7638eb4ebd353bd7defc742b565b475e90376 /fs/btrfs/scrub.c | |
parent | 42e9cc46fbe86f83278c14f5d88f353d037258d2 (diff) | |
download | linux-44880fdc91bc4f6730e37f2cb6025b35c70b312d.tar.bz2 |
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/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index f49b94ab3d2a..20c1ba19e665 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -1769,7 +1769,7 @@ static inline int scrub_check_fsid(u8 fsid[], struct btrfs_fs_devices *fs_devices = spage->dev->fs_devices; int ret; - ret = memcmp(fsid, fs_devices->fsid, BTRFS_UUID_SIZE); + ret = memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE); return !ret; } |