]> git.baikalelectronics.ru Git - kernel.git/commit
fs/xfs: Fix return code of xfs_break_leased_layouts()
authorIra Weiny <ira.weiny@intel.com>
Tue, 20 Aug 2019 01:15:28 +0000 (18:15 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 20 Aug 2019 01:15:28 +0000 (18:15 -0700)
commit8a978b95cb9a5baad4bfec35a7ea8a90f4372d60
tree7be686cc76fcd54f05acd8a4734562fa8bff8b86
parent035c0e1e83b0ade92c8e9c8756c9bd4a1da62d3a
fs/xfs: Fix return code of xfs_break_leased_layouts()

The parens used in the while loop would result in error being assigned
the value 1 rather than the intended errno value.

This is required to return -ETXTBSY from follow on break_layout()
changes.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_pnfs.c