Factorize sock_sendpage