diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-04-06 21:32:06 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:20 +0300 |
commit | d1170ce53c5b332caf647f658c6f2a483c3608a7 (patch) | |
tree | 5632ff5356378744bdd71117dc0c7718d320d88a /fs/bcachefs/super-io.c | |
parent | 478259b749d442baaccbe18b02a7352ca1e012ae (diff) | |
download | linux-d1170ce53c5b332caf647f658c6f2a483c3608a7.tar.xz |
bcachefs: allocate sb_read_scratch with __get_free_page
kmalloc allocations aren't guranteed alignment for io
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r-- | fs/bcachefs/super-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 7aaa8b785d57..0fe8ea22c6a1 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -652,7 +652,7 @@ static void read_back_super(struct bch_fs *c, struct bch_dev *ca) bio_reset(bio, ca->disk_sb.bdev, REQ_OP_READ|REQ_SYNC|REQ_META); bio->bi_iter.bi_sector = le64_to_cpu(sb->layout.sb_offset[0]); - bio->bi_iter.bi_size = 4096; + bio->bi_iter.bi_size = PAGE_SIZE; bio->bi_end_io = write_super_endio; bio->bi_private = ca; bch2_bio_map(bio, ca->sb_read_scratch); |