mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Revert "(CR) moto_swap: Add SWP_SYNCHRONOUS_IO cmd for ioctl"
This reverts commit 0d5cadb6c01d50b3a543c5842487bd358248e66f. Change-Id: Ic0cf12be9914cd115eb3ac1711ff8ae4c68c019e Reviewed-on: https://gerrit.mot.com/2789152 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao <liaohs@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
8f89498e79
commit
f190bc07c2
1 changed files with 0 additions and 17 deletions
|
|
@ -1752,22 +1752,6 @@ static void zram_slot_free_notify(struct block_device *bdev,
|
|||
zram_slot_unlock(zram, index);
|
||||
}
|
||||
|
||||
static int zram_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
unsigned int cmd, unsigned long index)
|
||||
{
|
||||
struct zram *zram;
|
||||
int has_sync_io = 1;
|
||||
|
||||
if (cmd != SWP_SYNCHRONOUS_IO) return -EINVAL;
|
||||
|
||||
zram = bdev->bd_disk->private_data;
|
||||
zram_slot_lock(zram, index);
|
||||
has_sync_io = zram_test_flag(zram, index, ZRAM_WB) ? 0 : 1;
|
||||
zram_slot_unlock(zram, index);
|
||||
|
||||
return has_sync_io;
|
||||
}
|
||||
|
||||
static int zram_rw_page(struct block_device *bdev, sector_t sector,
|
||||
struct page *page, unsigned int op)
|
||||
{
|
||||
|
|
@ -1960,7 +1944,6 @@ static int zram_open(struct block_device *bdev, fmode_t mode)
|
|||
static const struct block_device_operations zram_devops = {
|
||||
.open = zram_open,
|
||||
.swap_slot_free_notify = zram_slot_free_notify,
|
||||
.ioctl = zram_ioctl,
|
||||
.rw_page = zram_rw_page,
|
||||
.owner = THIS_MODULE
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue