From: Matthew Wilcox (Oracle) Date: Tue, 17 May 2022 22:12:25 +0000 (-0400) Subject: ntfs: Remove check for PageError X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=17bb55487988c5dac32d55a4f085e52f875f98cc;p=linux.git ntfs: Remove check for PageError If read_mapping_page() encounters an error, it returns an errno, not a page with PageError set, so this is dead code. Signed-off-by: Matthew Wilcox (Oracle) --- diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index a8abe2296514e..3436d58fbb74e 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -219,11 +219,6 @@ do_non_resident_extend: err = PTR_ERR(page); goto init_err_out; } - if (unlikely(PageError(page))) { - put_page(page); - err = -EIO; - goto init_err_out; - } /* * Update the initialized size in the ntfs inode. This is * enough to make ntfs_writepage() work.