diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2015-08-17 08:13:26 -0600 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:15:23 -0700 |
| commit | fc1e02aa45c76013ac05c04a24efbc569fa27203 (patch) | |
| tree | 34eef13b17646c1ed35375aace009bb22d2834dd /include/linux | |
| parent | 568f511fad52365db4982695bc1f89f21ac542ca (diff) | |
scatterlist: use sg_phys()
Coccinelle cleanup to replace open coded sg to physical address
translations. This is in preparation for introducing scatterlists that
reference __pfn_t.
// sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg)
// usage: make coccicheck COCCI=sg_phys.cocci MODE=patch
virtual patch
@@
struct scatterlist *sg;
@@
- page_to_phys(sg_page(sg)) + sg->offset
+ sg_phys(sg)
@@
struct scatterlist *sg;
@@
- page_to_phys(sg_page(sg))
+ sg_phys(sg) & PAGE_MASK
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
