https://github.com/torvalds/linux
Revision 10ddf64e420f7f6c1a871bfb4ff2de08faef8235 authored by Darrick J. Wong on 14 December 2017, 23:46:05 UTC, committed by Darrick J. Wong on 21 December 2017, 16:47:32 UTC
When we're remounting the filesystem readonly, remove all CoW
preallocations prior to going ro.  If the fs goes down after the ro
remount, we never clean up the staging extents, which means xfs_check
will trip over them on a subsequent run.  Practically speaking, the next
mount will clean them up too, so this is unlikely to be seen.  Since we
shut down the cowblocks cleaner on remount-ro, we also have to make sure
we start it back up if/when we remount-rw.

Found by adding clonerange to fsstress and running xfs/017.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent 363e59b
Raw File
Tip revision: 10ddf64e420f7f6c1a871bfb4ff2de08faef8235 authored by Darrick J. Wong on 14 December 2017, 23:46:05 UTC
xfs: remove leftover CoW reservations when remounting ro
Tip revision: 10ddf64
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
back to top