]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: allow CoW remap transactions to use reserve blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Dec 2017 02:03:56 +0000 (18:03 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 14 Dec 2017 17:20:11 +0000 (09:20 -0800)
commit664b657cf03e128209f7f73131ee36fff77dc52a
treecb08a613445cbcd27aa30fa1c9ba26eddbcbf649
parent49e2a4f88b9c79851ee6a39eaa342e0265e040ae
xfs: allow CoW remap transactions to use reserve blocks

Since we as yet have no way of holding on to the indlen blocks that are
reserved as part of CoW fork delalloc reservations, let the CoW remap
transaction dip into the reserves so that we avoid failing writes.

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