Re: Concurrent FIEMAP on reflinked files serialises on the AGF buffer lock

From
Christoph Hellwig <hch@infradead.org>
Date
2026-11-06 15:20:04
Also in
linux-btrfs, linux-cifs, linux-fsdevel, linux-nfs, linux-xfs, ocfs2-devel
On Fri, Nov 06, 2026 at 02:23:55PM +0200, Lauri Gates wrote:
Mirroring XFS_DIFLAG2_REFLINK, the flag would mean "may have shared
extents", which is all a du tool needs to decide whether to look
closer. If it helps, I can write the patch.
Please do.  The main question are:

 - do we want it in fileattr_get or as a STATX_ATTR_ in statx.
 - how do we make the query reliable, and do we even need to?

Besides xfs, btrfs and ocfs2 also support reflinks, and nfs (and maybe
cifs?) can export the semanics remotely.  So we really need a way
to indicate if the file system could support reflinks to start with,
and then one that the file could, so we probably need two bits
Thread (3 messages) 3 messages, 2 authors, last reply 4d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help