xfs: remove the same fs check from xfs_file_share_range
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Oct 2016 04:48:54 +0000 (15:48 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:48:54 +0000 (15:48 +1100)
commit4fbc2c65255f77b315a4ee3ccac397d677a35737
tree99c72ba2c40c77b9217e55ac4c77c8bfa64499bf
parent8cdcc8102c0cfad20513ed1bfb96e0e9963928a8
xfs: remove the same fs check from xfs_file_share_range

The VFS already does the check, and the placement of this duplicate
is in the way of the following locking rework.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c