]> git.hungrycats.org Git - linux/commitdiff
ext4: remove the redundant folio_wait_stable()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 19 Apr 2024 02:30:05 +0000 (10:30 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 May 2024 19:48:04 +0000 (15:48 -0400)
__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>
fs/ext4/inode.c

index 989e28c24a8cb92296d835317644dfe7c625026b..4bae9ccf5fe01619fc1f05bf651b2a69b814f0a0 100644 (file)
@@ -2887,9 +2887,6 @@ retry:
        if (IS_ERR(folio))
                return PTR_ERR(folio);
 
-       /* In case writeback began while the folio was unlocked */
-       folio_wait_stable(folio);
-
 #ifdef CONFIG_FS_ENCRYPTION
        ret = ext4_block_write_begin(folio, pos, len, ext4_da_get_block_prep);
 #else