btrfs: stop using write_one_page in btrfs_scratch_superblock
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Nov 2022 17:47:49 +0000 (18:47 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 Jan 2023 18:46:19 +0000 (19:46 +0100)
commit26ecf243e407be54807ad67210f7e83b9fad71ea
tree633c8aed0da395c197465be7f640677dc0133268
parent0e0078f72be81bbb2a02b229fd2cec8ad63e4fb1
btrfs: stop using write_one_page in btrfs_scratch_superblock

write_one_page is an awkward interface that expects the page locked and
->writepage to be implemented.  Replace that by zeroing the signature
bytes and synchronize the block device page using the proper bdev
helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c