xprtsock.c (1d33369db25eb7f37b7a8bd22d736888b4501a9c) | xprtsock.c (18e601d6adae5042f82d105ccd3d4498050f2ebf) |
---|---|
1/* 2 * linux/net/sunrpc/xprtsock.c 3 * 4 * Client-side transport implementation for sockets. 5 * 6 * TCP callback races fixes (C) 1998 Red Hat 7 * TCP send fixes (C) 1998 Red Hat 8 * TCP NFS related read + write fixes --- 2549 unchanged lines hidden (view full) --- 2558 page = alloc_page(GFP_KERNEL); 2559 if (!page) 2560 return -ENOMEM; 2561 2562 buf = page_address(page); 2563 buf->len = PAGE_SIZE; 2564 2565 rqst->rq_buffer = buf->data; | 1/* 2 * linux/net/sunrpc/xprtsock.c 3 * 4 * Client-side transport implementation for sockets. 5 * 6 * TCP callback races fixes (C) 1998 Red Hat 7 * TCP send fixes (C) 1998 Red Hat 8 * TCP NFS related read + write fixes --- 2549 unchanged lines hidden (view full) --- 2558 page = alloc_page(GFP_KERNEL); 2559 if (!page) 2560 return -ENOMEM; 2561 2562 buf = page_address(page); 2563 buf->len = PAGE_SIZE; 2564 2565 rqst->rq_buffer = buf->data; |
2566 rqst->rq_rbuffer = (char *)rqst->rq_buffer + rqst->rq_callsize; |
|
2566 return 0; 2567} 2568 2569/* 2570 * Free the space allocated in the bc_alloc routine 2571 */ 2572static void bc_free(struct rpc_task *task) 2573{ --- 704 unchanged lines hidden --- | 2567 return 0; 2568} 2569 2570/* 2571 * Free the space allocated in the bc_alloc routine 2572 */ 2573static void bc_free(struct rpc_task *task) 2574{ --- 704 unchanged lines hidden --- |