]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove isize check from unshare operation
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Oct 2016 05:49:01 +0000 (16:49 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Oct 2016 05:49:01 +0000 (16:49 +1100)
commitde65aec6de7486c0cce42596a602908b80ccba15
tree761afd1f622f3a9edbb10ffc2fd9b3c26dcdf7ca
parentd16163174319b671c794561a4a8220a98ab1955d
xfs: remove isize check from unshare operation

Now that fallocate has an explicit unshare flag again, let's try
to remove the inode reflink flag whenever the user unshares any
part of a file since checking is cheap compared to the CoW.

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