OSDN Git Service

ext4: Fix credit estimate for final inode freeing
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:12 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:31 +0000 (16:00 -0500)
commit65db869c754e7c271691dd5feabf884347e694f5
treeb4d1c3c7b3339e7d4e2632c5204e6978ffb685dc
parent9b88f9fb0d2fc8f7e71e75a42c5a064bc6cfffd2
ext4: Fix credit estimate for final inode freeing

Estimate for the number of credits needed for final freeing of inode in
ext4_evict_inode() was to small. We may modify 4 blocks (inode & sb for
orphan deletion, bitmap & group descriptor for inode freeing) and not
just 3.

[ Fixed minor whitespace nit. -- TYT ]

Fixes: e50e5129f384 ("ext4: xattr-in-inode support")
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191105164437.32602-6-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c