]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd16163174319b671c794561a4a8220a98ab1955d
tree452b62e369489bd4d207d125615580913b4fb9ad
parentb1fc441170d9ee469a7cc3d2181fdcee171aa2a4
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