mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'android11-5.4' into 'android11-5.4-lts'
Sync up with android11-5.4 for the following commits:05cd3c592dANDROID: distribute Module.symvers6eea8a6d1dUPSTREAM: usb: max-3421: Prevent corruption of freed memoryf625f1b305ANDROID: ABI: Update allowed list for QCOMd7aa701af5UPSTREAM: driver core: Prevent warning when removing a device link from unregistered consumer2e30052a73UPSTREAM: udp: properly flush normal packet at GRO time833c1e231cUPSTREAM: net/xfrm/compat: Copy xfrm_spdattr_type_t atributesa95d35ae26UPSTREAM: f2fs: Advertise encrypted casefolding in sysfs8557d5a891UPSTREAM: loop: Fix missing discard support when using LOOP_CONFIGUREd0cca8a1eaUPSTREAM: thermal/drivers/sprd: Add missing MODULE_DEVICE_TABLEba83fe23f6UPSTREAM: nvmem: sprd: Fix an error message98e9d16b6bUPSTREAM: usb: musb: Fix an error messageace71bcb51UPSTREAM: scsi: ufs: core: Cancel rpm_dev_flush_recheck_work during system suspenddc5ccc2d9cUPSTREAM: scsi: ufs: core: Do not put UFS power into LPM if link is broken5576e5e477UPSTREAM: selinux: add proper NULL termination to the secclass_map permissionsf87a97cd71UPSTREAM: of: property: fw_devlink: do not link ".*,nr-gpios"751aaf9f30UPSTREAM: udp: never accept GSO_FRAGLIST packets01228292a6UPSTREAM: udp: skip L4 aggregation for UDP tunnel packets13ab504be3UPSTREAM: xfrm/compat: Cleanup WARN()s that can be user-triggered236d41699dUPSTREAM: pinctrl: sunxi: fix irq bank map for the Allwinner A100 pin controller4f031c8941UPSTREAM: loop: Set correct device size when using LOOP_CONFIGURE38866fe5a7UPSTREAM: loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGUREc060961254ANDROID: ion_system_heap: Add __GFP_NOWARN to mid-order allocations77e911a101ANDROID: drivers: gpu: drm: increase the MAX_DRM_OPEN_COUNT0923d5c13bUPSTREAM: af_unix: fix garbage collect vs MSG_PEEK Change-Id: I91712c50821a00aea9165ca5497cead9ade766e6 Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
commit
65d414cb38
19 changed files with 132 additions and 32 deletions
|
|
@ -1113,8 +1113,6 @@ static int loop_configure(struct loop_device *lo, fmode_t mode,
|
|||
mapping = file->f_mapping;
|
||||
inode = mapping->host;
|
||||
|
||||
size = get_loop_size(lo, file);
|
||||
|
||||
if ((config->info.lo_flags & ~LOOP_CONFIGURE_SETTABLE_FLAGS) != 0) {
|
||||
error = -EINVAL;
|
||||
goto out_unlock;
|
||||
|
|
@ -1163,9 +1161,12 @@ static int loop_configure(struct loop_device *lo, fmode_t mode,
|
|||
blk_queue_physical_block_size(lo->lo_queue, bsize);
|
||||
blk_queue_io_min(lo->lo_queue, bsize);
|
||||
|
||||
loop_config_discard(lo);
|
||||
loop_update_rotational(lo);
|
||||
loop_update_dio(lo);
|
||||
loop_sysfs_init(lo);
|
||||
|
||||
size = get_loop_size(lo, file);
|
||||
loop_set_size(lo, size);
|
||||
|
||||
set_blocksize(bdev, S_ISBLK(inode->i_mode) ?
|
||||
|
|
@ -1175,6 +1176,8 @@ static int loop_configure(struct loop_device *lo, fmode_t mode,
|
|||
if (part_shift)
|
||||
lo->lo_flags |= LO_FLAGS_PARTSCAN;
|
||||
partscan = lo->lo_flags & LO_FLAGS_PARTSCAN;
|
||||
if (partscan)
|
||||
lo->lo_disk->flags &= ~GENHD_FL_NO_PART_SCAN;
|
||||
|
||||
/* Grab the block_device to prevent its destruction after we
|
||||
* put /dev/loopXX inode. Later in __loop_clr_fd() we bdput(bdev).
|
||||
|
|
|
|||
Loading…
Reference in a new issue