Btrfs: free space cache: make sure there is always room for generation number
authorZhihui Zhang <zzhsuny@gmail.com>
Tue, 3 Jul 2018 00:00:54 +0000 (20:00 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:42 +0000 (13:12 +0200)
commit8f6c72a9e08c2a74d2159d2fc986fa9b29ceb851
tree0b8a786d4e82e9dff40eb16ca25781ce1215d29a
parent694c51fb2eb6b6d7c9552af78ba646023a843366
Btrfs: free space cache: make sure there is always room for generation number

io_ctl_set_generation() assumes that the generation number shares
the same page with inline CRCs. Let's make sure this is always true.

Signed-off-by: Zhihui Zhang <zzhsuny@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c