Skip to content

Commit bf2db0b

Browse files
committed
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
2 parents b77779b + 69ad597 commit bf2db0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/btrfs/ctree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ struct btrfs_delayed_root;
722722
* Indicate that a whole-filesystem exclusive operation is running
723723
* (device replace, resize, device add/delete, balance)
724724
*/
725-
#define BTRFS_FS_EXCL_OP 14
725+
#define BTRFS_FS_EXCL_OP 16
726726

727727
struct btrfs_fs_info {
728728
u8 fsid[BTRFS_FSID_SIZE];

fs/btrfs/extent_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,7 @@ static int submit_extent_page(unsigned int opf, struct extent_io_tree *tree,
28012801
}
28022802
}
28032803

2804-
bio = btrfs_bio_alloc(bdev, sector << 9);
2804+
bio = btrfs_bio_alloc(bdev, (u64)sector << 9);
28052805
bio_add_page(bio, page, page_size, offset);
28062806
bio->bi_end_io = end_io_func;
28072807
bio->bi_private = tree;

0 commit comments

Comments
 (0)