On 2/13/20 11:24 PM, Johannes Thumshirn wrote:
Similar to the superblock read path, change the write path to using BIOs and pages instead of buffer_heads. This allows us to skip over the buffer_head code, for writing the superblock to disk. This is based on a patch originally authored by Nikolay Borisov. Co-developed-by: Nikolay Borisov <nborisov@xxxxxxxx> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx> Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx> Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
Looks good. A nit below.
@@ -3553,12 +3570,11 @@ static int write_dev_supers(struct btrfs_device *device,
The comment section on this function still says.. * buffer heads we write are pinned. Reviewed-by: Anand Jain <anand.jain@xxxxxxxxxx> Thanks, Anand
