diff options
| author | 2021-08-17 17:38:50 +0800 | |
|---|---|---|
| committer | 2021-10-25 21:17:16 +0200 | |
| commit | 651fb419273300ebad459630becd839d79439bbc (patch) | |
| tree | 818992dcadc16205f9c203565609ecaead1917d7 /fs/btrfs/disk-io.c | |
| parent | btrfs: subpage: only call btrfs_alloc_subpage() when sectorsize is smaller than PAGE_SIZE (diff) | |
| download | linux-rng-651fb419273300ebad459630becd839d79439bbc.tar.xz linux-rng-651fb419273300ebad459630becd839d79439bbc.zip | |
btrfs: subpage: make btrfs_alloc_subpage() return btrfs_subpage directly
The existing calling convention of btrfs_alloc_subpage() is pretty
awful. Change it to a more common pattern by returning struct
btrfs_subpage directly and let the caller to determine if the call
succeeded.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions
