]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: always succeed when deduping zero bytes
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Nov 2016 03:57:42 +0000 (14:57 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 28 Nov 2016 03:57:42 +0000 (14:57 +1100)
commitfba3e594ef0ad911fa8f559732d588172f212d71
tree26091fceaa12422389c5ff5e53077de685b5b1cd
parentcf7841c12d85d1fe0ad33fb8bc5746809a882010
xfs: always succeed when deduping zero bytes

It turns out that btrfs and xfs had differing interpretations of what
to do when the dedupe length is zero.  Change xfs to follow btrfs'
semantics so that the userland interface is consistent.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_reflink.c