]> git.hungrycats.org Git - linux/commit
ext4: remove the redundant folio_wait_stable()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 19 Apr 2024 02:30:05 +0000 (10:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:47 +0000 (09:49 +0200)
commit28698710de011f23c12bedfeab95d1e5a6c5ba00
tree88ceb765225c423be4c1adad91a54b311925cda1
parent1637c0eff73d883a89b2dfc85593e31841729264
ext4: remove the redundant folio_wait_stable()

[ Upstream commit df0b5afc62f3368d657a8fe4a8d393ac481474c2 ]

__filemap_get_folio() with FGP_WRITEBEGIN parameter has already wait
for stable folio, so remove the redundant folio_wait_stable() in
ext4_da_write_begin(), it was left over from the commit cc883236b792
("ext4: drop unnecessary journal handle in delalloc write") that
removed the retry getting page logic.

Fixes: cc883236b792 ("ext4: drop unnecessary journal handle in delalloc write")
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240419023005.2719050-1-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/inode.c