]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e145162db497c4cfd2529f76294e215c45d7773
tree0b8a786d4e82e9dff40eb16ca25781ce1215d29a
parenta96ed6beb219588190de393ffd7c3c3ed421b04b
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