diff options
| author | 2020-10-02 16:27:34 +0800 | |
|---|---|---|
| committer | 2020-10-02 15:27:08 -0700 | |
| commit | 40efc4dc73956e1fab177783e55f30117517c542 (patch) | |
| tree | b9afe6c323f391becaa8b69706659bfb58703bc2 /lib/math/git:/ssh:/git@git.zx2c4.com | |
| parent | scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map() (diff) | |
| download | linux-dev-40efc4dc73956e1fab177783e55f30117517c542.tar.xz linux-dev-40efc4dc73956e1fab177783e55f30117517c542.zip | |
libceph: use sendpage_ok() in ceph_tcp_sendpage()
In libceph, ceph_tcp_sendpage() does the following checks before handle
the page by network layer's zero copy sendpage method,
if (page_count(page) >= 1 && !PageSlab(page))
This check is exactly what sendpage_ok() does. This patch replace the
open coded checks by sendpage_ok() as a code cleanup.
Signed-off-by: Coly Li <colyli@suse.de>
Acked-by: Jeff Layton <jlayton@kernel.org>
Cc: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/math/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
