summaryrefslogtreecommitdiffstats
path: root/io_uring/rsrc.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-09-15 16:51:20 +0200
committerJens Axboe <axboe@kernel.dk>2024-09-15 17:15:19 +0200
commit8b0c6025a02ddec2b497f83e7d2f27a07f1d0653 (patch)
tree11bbd4817766513c8d2fcc432a6a1ec6dcfc8dad /io_uring/rsrc.h
parentio_uring: rename "copy buffers" to "clone buffers" (diff)
downloadlinux-8b0c6025a02ddec2b497f83e7d2f27a07f1d0653.tar.xz
linux-8b0c6025a02ddec2b497f83e7d2f27a07f1d0653.zip
io_uring/rsrc: get rid of io_mapped_ubuf->folio_mask
We don't really need to cache this, let's reclaim 8 bytes from struct io_mapped_ubuf and just calculate it when we need it. The only hot path here is io_import_fixed(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r--io_uring/rsrc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
index eb4803e473b0..e290d2be3285 100644
--- a/io_uring/rsrc.h
+++ b/io_uring/rsrc.h
@@ -46,7 +46,6 @@ struct io_mapped_ubuf {
unsigned int nr_bvecs;
unsigned int folio_shift;
unsigned long acct_pages;
- unsigned long folio_mask;
refcount_t refs;
struct bio_vec bvec[] __counted_by(nr_bvecs);
};