]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udf: Fix free space reporting for metadata and virtual partitions
authorJan Kara <jack@suse.cz>
Tue, 7 Jan 2020 15:36:49 +0000 (16:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:44 +0000 (08:36 +0100)
commit6ceef50235d16475b85e68818bb752ae78768a05
tree57db84706a7e96ba4f64d8436b5ecd6e296e2c82
parent03560e4a19feef8a6765bbf4dccdd589dbfa685c
udf: Fix free space reporting for metadata and virtual partitions

[ Upstream commit a4a8b99ec819ca60b49dc582a4287ef03411f117 ]

Free space on filesystems with metadata or virtual partition maps
currently gets misreported. This is because these partitions are just
remapped onto underlying real partitions from which keep track of free
blocks. Take this remapping into account when counting free blocks as
well.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Reported-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/udf/super.c