]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "vf/remap: return the amount of bytes actually deduplicated"
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Jul 2022 22:35:24 +0000 (15:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 14 Jul 2022 22:35:24 +0000 (15:35 -0700)
commit215dcc0f98913e0b26b328472505569b1b3957e9
tree9b3c92339be3c3e433e7d74fb4871c261a7c28e3
parent4c9ddc6562123f64c14feb308009525356880087
Revert "vf/remap: return the amount of bytes actually deduplicated"

This reverts commit f89377f8ca5189bb7c017cbc2f612026d150a768.

Dave Chinner reports:
 "As I suspected would occur, this change causes test failures. e.g
  generic/517 in fstests fails with:

  generic/517 1s ... - output mismatch [..]
  -deduped 131172/131172 bytes at offset 65536
  +deduped 131072/131172 bytes at offset 65536"

  can you please revert this commit for the 5.19 series to give us more
  time to investigate and consider the impact of the the API change on
  userspace applications before we commit to changing the API"

That changed return value seems to reflect reality, but with the fstest
change, let's revert for now.

Requested-by: Dave Chinner <david@fromorbit.com>
Link: https://lore.kernel.org/all/20220714223238.GH3600936@dread.disaster.area/
Cc: Ansgar Lößer <ansgar.loesser@tu-darmstadt.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/remap_range.c