mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
target: Don't allocate pages for NULLIO devices
Signed-off-by: Andy Grover <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
db5d1c3ccc
commit
670caa9f76
1 changed files with 5 additions and 0 deletions
|
|
@ -139,6 +139,11 @@ static int rd_build_device_space(struct rd_dev *rd_dev)
|
|||
rd_dev->rd_page_count);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Don't need backing pages for NULLIO */
|
||||
if (rd_dev->rd_flags & RDF_NULLIO)
|
||||
return 0;
|
||||
|
||||
total_sg_needed = rd_dev->rd_page_count;
|
||||
|
||||
sg_tables = (total_sg_needed / max_sg_per_table) + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue