]> 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:38:24 +0000 (08:38 +0100)
commit72472893c1aa8fa602da20846f9b4d8c950f03ea
tree38e7fd19b83836fee5ef853aa0e438c4dadc8818
parent8e1775196465dfe3b1d952fa4287b1932b57eb22
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