WSL2-Linux-Kernel/net/ceph
Alex Elder 8d63e318c4 libceph: isolate kmap() call in write_partial_msg_pages()
In write_partial_msg_pages(), every case now does an identical call
to kmap(page).  Instead, just call it once inside the CRC-computing
block where it's needed.  Move the definition of kaddr inside that
block, and make it a (char *) to ensure portable pointer arithmetic.

We still don't kunmap() it until after the sendpage() call, in case
that also ends up needing to use the mapping.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-03-22 10:47:52 -05:00
..
crush crush: fix force for non-root TAKE 2012-01-10 08:56:57 -08:00
Kconfig
Makefile
armor.c
auth.c
auth_none.c
auth_none.h
auth_x.c
auth_x.h
auth_x_protocol.h
buffer.c
ceph_common.c ceph: ensure Boolean options support both senses 2012-03-22 10:47:51 -05:00
ceph_fs.c
ceph_hash.c
ceph_strings.c
crypto.c ceph: Use kmemdup rather than duplicating its implementation 2012-01-10 08:56:54 -08:00
crypto.h
debugfs.c
messenger.c libceph: isolate kmap() call in write_partial_msg_pages() 2012-03-22 10:47:52 -05:00
mon_client.c ceph: initialize client debugfs outside of monc->mutex 2012-02-02 12:49:01 -08:00
msgpool.c
osd_client.c libceph: remove useless return value for osd_client __send_request() 2012-01-10 08:57:03 -08:00
osdmap.c libceph: fix overflow check in crush_decode() 2012-03-22 10:47:45 -05:00
pagelist.c
pagevec.c