rds: refactor zcopy code into rds_message_zcopy_from_user
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Tue, 6 Mar 2018 15:22:33 +0000 (07:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 23:05:57 +0000 (18:05 -0500)
commitd40a126b16ea851f858f97b0e214d97c8355cecb
tree4ace80298df8601df9e93218df93f049bb422465
parentc33b3b9fcfa4fe5350b5d13bdb87dab061351d77
rds: refactor zcopy code into rds_message_zcopy_from_user

Move the large block of code predicated on zcopy from
rds_message_copy_from_user into a new function,
rds_message_zcopy_from_user()

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/message.c