sna: Rename the two variants of pwrite so very relative dangers are obvious
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2013 09:34:25 +0000 (09:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2013 09:34:25 +0000 (09:34 +0000)
commit8d067e961920e19fda7e9990440ac2be1a2e1760
tree17768156d5e249e403d36328fab27433190aec72
parent7050c8da56676b60a602dce9abbdb61a7c4fa61e
sna: Rename the two variants of pwrite so very relative dangers are obvious

Since we extend the write in the cache-aligned routine, it runs the risk
of reading from beyond the end of the allocation. As such, callers
should be carefully vetted to make sure that their allocations are
already cache-aligned (typically page-aligned). To make it obvious that
this complexity exists, rename the routine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/kgem.c