diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-06 18:03:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-06 18:03:08 +0200 |
commit | bf2db0b9f5808fa5b78141b68d55ec630bf06313 (patch) | |
tree | 0e82d0824f8cfb7c3d1aca5e1bb44c3bc6f1c23a /fs/btrfs/extent_io.c | |
parent | Merge tag 'ceph-for-4.14-rc4' of git://github.com/ceph/ceph-client (diff) | |
parent | Btrfs: fix overlap of fs_info::flags values (diff) | |
download | linux-bf2db0b9f5808fa5b78141b68d55ec630bf06313.tar.xz linux-bf2db0b9f5808fa5b78141b68d55ec630bf06313.zip |
Merge branch 'for-4.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
"Two more fixes for bugs introduced in 4.13.
The sector_t problem with 32bit architecture and !LBDAF config seems
serious but the number of affected deployments is hopefully low.
The clashing status bits could lead to a confusing in-memory state of
the whole-filesystem operations if used with the quota override sysfs
knob"
* 'for-4.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
Btrfs: fix overlap of fs_info::flags values
btrfs: avoid overflow when sector_t is 32 bit
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 12ab19a4b93e..970190cd347e 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2801,7 +2801,7 @@ static int submit_extent_page(unsigned int opf, struct extent_io_tree *tree, } } - bio = btrfs_bio_alloc(bdev, sector << 9); + bio = btrfs_bio_alloc(bdev, (u64)sector << 9); bio_add_page(bio, page, page_size, offset); bio->bi_end_io = end_io_func; bio->bi_private = tree; |