]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: enable FITRIM on the realtime device
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Jun 2024 15:04:21 +0000 (08:04 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 1 Jul 2024 04:02:29 +0000 (09:32 +0530)
commit3ba3ab1f6719287674cf77a1208944cf38ef71c7
tree6e9b7392ded1367bc32f0ae079236ba2931705af
parenta330cae8a7147890262b06e1aa13db048e3b130f
xfs: enable FITRIM on the realtime device

Implement FITRIM for the realtime device by pretending that it's
"space" immediately after the data device.  We have to hold the
rtbitmap ILOCK while the discard operations are ongoing because there's
no busy extent tracking for the rt volume to prevent reallocations.

Cc: Konst Mayer <cdlscpmv@gmail.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_discard.c
fs/xfs/xfs_trace.h