xfs: reduce stack usage of _reflink_clear_inode_flag
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Oct 2016 05:47:40 +0000 (16:47 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Oct 2016 05:47:40 +0000 (16:47 +1100)
commit024adf48702212b0af15c682a7ff9773e1e092d6
tree452b62e369489bd4d207d125615580913b4fb9ad
parent63646fc58d666f149b85ccf470bfc1576a779d4c
xfs: reduce stack usage of _reflink_clear_inode_flag

The loop in _reflink_clear_inode_flag isn't necessary since we
jump out if any part of any extent is shared.  Remove the loop
and we no longer need two maps, so we can save some stack use.

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