Skip to content

Get rid of import_single_range()

Jens Axboe lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iov_iter: remove unused 'iov' argument from import_single_range()drivers/block/ublk_drv.c drivers/char/random.c fs/aio.c +6 more+13 -230 replies
2/2iov_iter: replace import_single_range() with import_ubuf()drivers/block/ublk_drv.c drivers/char/random.c fs/aio.c +6 more+14 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/2] Get rid of import_single_range()

Hi,

While looking at this today, I noticed that the 'iov' argument to this function is totally dead code. Patch 1 gets rid of it, and with this function and import_ubuf() now being identical, converts the callers to just use import_ubuf().

No functional changes here, just a cleanup removing some dead code.

 drivers/block/ublk_drv.c         |  9 ++-------
 drivers/char/random.c            |  6 ++----
 fs/aio.c                         |  2 +-
 include/linux/uio.h              |  2 --
 kernel/trace/trace_events_user.c |  4 +---
 lib/iov_iter.c                   | 13 -------------
 net/ipv4/tcp.c                   | 10 ++++------
 net/socket.c                     |  6 ++----
 security/keys/keyctl.c           |  5 ++---
 9 files changed, 14 insertions(+), 43 deletions(-)
Signature · 1 line
Jens Axboe