Skip to content
Commit d32311fe authored by Herbert Xu's avatar Herbert Xu
Browse files

[PATCH] Introduce sg_set_buf



sg_init_one is a nice tool for the block layer.  However, users
of struct scatterlist in other subsystems don't usually need the
DMA attributes.  For them it's a waste of time and space to
initialise the whole struct scatterlist structure.

Therefore this patch adds a new function sg_set_buf to initialise
a scatterlist without zeroing the DMA attributes.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent be15cd72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment