btrfs: introduce the skeleton of btrfs_subpage structure
authorQu Wenruo <wqu@suse.com>
Tue, 26 Jan 2021 08:33:47 +0000 (16:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:59:01 +0000 (22:59 +0100)
commitcac06d843f259ebc4d03e4bc8af7304c17f76ee5
tree15477a4bf8aa0a8ec1a247d7d127b14f773519a3
parent62c053fbb2d1816def1d353d9abed4c2f1f0abe9
btrfs: introduce the skeleton of btrfs_subpage structure

For sectorsize < page size support, we need a structure to record extra
status info for each sector of a page.

Introduce the skeleton structure, all subpage related code would go to
subpage.[ch].

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Makefile
fs/btrfs/subpage.c [new file with mode: 0644]
fs/btrfs/subpage.h [new file with mode: 0644]
fs/btrfs/super.c