projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm space map metadata: fix sm_bootstrap_get_nr_blocks()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
md
/
dm-ioctl.c
diff --git
a/drivers/md/dm-ioctl.c
b/drivers/md/dm-ioctl.c
index aa04f02246421f503c63f267d1f0604454ddaecf..81a79b739e9738457190152e9d6f4ccafbe1dbe5 100644
(file)
--- a/
drivers/md/dm-ioctl.c
+++ b/
drivers/md/dm-ioctl.c
@@
-1644,7
+1644,10
@@
static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kern
}
if (!dmi) {
+ unsigned noio_flag;
+ noio_flag = memalloc_noio_save();
dmi = __vmalloc(param_kernel->data_size, GFP_NOIO | __GFP_REPEAT | __GFP_HIGH, PAGE_KERNEL);
+ memalloc_noio_restore(noio_flag);
if (dmi)
*param_flags |= DM_PARAMS_VMALLOC;
}