aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorBenjamin Marzinski <[email protected]>2024-07-02 12:00:43 +0200
committerMikulas Patocka <[email protected]>2024-07-02 12:00:43 +0200
commitbabe69e86d0fcb11a4a8f629edf2951d94ef67ae (patch)
tree9bce0224cbd5c3dba840336fb2da2474562a71af /lib/memory-notifier-error-inject.c
parentb0042ba7684c90d9c8e7deb500c73d6ae3872cfe (diff)
dm io: remove code duplication between sync_io and aysnc_io
The only difference between the code to setup and dispatch the io in sync_io() and async_io() is the sync argument to dispatch_io(), which is used to update the opf argument. Update the opf argument direcly in sync_io(), and remove the sync argument from dispatch_io(). Then, make sync_io() call async_io() instead of duplicting all of its code. Signed-off-by: Benjamin Marzinski <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions