Files
linux-stable-mirror/fs
Theodore Ts'o ea0527d5cc ext4: fix FS_IOC_GETFSMAP handling
commit 4a622e4d47 upstream.

The original implementation ext4's FS_IOC_GETFSMAP handling only
worked when the range of queried blocks included at least one free
(unallocated) block range.  This is because how the metadata blocks
were emitted was as a side effect of ext4_mballoc_query_range()
calling ext4_getfsmap_datadev_helper(), and that function was only
called when a free block range was identified.  As a result, this
caused generic/365 to fail.

Fix this by creating a new function ext4_getfsmap_meta_helper() which
gets called so that blocks before the first free block range in a
block group can get properly reported.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-14 19:48:08 +01:00
..
2024-12-14 19:48:08 +01:00
2024-10-22 15:39:24 +02:00
2024-11-08 16:21:59 +01:00
2024-02-23 08:42:14 +01:00
2024-12-14 19:48:03 +01:00
2024-09-04 13:17:35 +02:00
2024-03-01 13:16:43 +01:00
2023-09-23 11:01:09 +02:00
2024-06-21 14:52:47 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:52:59 +02:00