summaryrefslogtreecommitdiff
path: root/fs/jbd2
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-04-11 18:48:30 +0300
committerJens Axboe <axboe@kernel.dk>2022-04-12 01:38:21 +0300
commit6f83ab22adcb77a5824d2c274dace0d99e21319f (patch)
tree4cd7f5945b9b85df8aa99e446b8aa1a779777ec6 /fs/jbd2
parentc4212f3eb89fd5654f0a6ed2ee1d13fcb86cb664 (diff)
downloadlinux-6f83ab22adcb77a5824d2c274dace0d99e21319f.tar.xz
io_uring: io_kiocb_update_pos() should not touch file for non -1 offset
-1 tells use to use the current position, but we check if the file is a stream regardless of that. Fix up io_kiocb_update_pos() to only dip into file if we need to. This is both more efficient and also drops 12 bytes of text on aarch64 and 64 bytes on x86-64. Fixes: b4aec4001595 ("io_uring: do not recalculate ppos unnecessarily") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/jbd2')
0 files changed, 0 insertions, 0 deletions