]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: allow empty transactions while frozen
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 22 Jun 2018 06:26:55 +0000 (23:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 24 Jun 2018 18:56:35 +0000 (11:56 -0700)
commita741e0c7943648af149cb1f7d6c5a27e5092d07a
tree2a897617e8b22c0f8e2e41c0c935082b6ffb4389
parent13854b7b0895e79e68472eb0d7d3f11d1f26d56a
xfs: allow empty transactions while frozen

In commit fe5a728e3a24347 ("xfs: implement the GETFSMAP ioctl") we
created the ability to obtain empty transactions.  These transactions
have no log or block reservations and therefore can't modify anything.
Since they're also NO_WRITECOUNT they can run while the fs is frozen,
so we don't need to WARN_ON about that usage.

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