summaryrefslogtreecommitdiff
path: root/fs/ntfs
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-17 18:12:25 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-29 08:51:06 -0400
commit17bb55487988c5dac32d55a4f085e52f875f98cc (patch)
tree290e9cc5af954a7657dfc8da1fede0160fe06007 /fs/ntfs
parentca02bcabd79f7a58d97e1ec0a3439e47139282ec (diff)
downloadlwn-17bb55487988c5dac32d55a4f085e52f875f98cc.tar.gz
lwn-17bb55487988c5dac32d55a4f085e52f875f98cc.zip
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) <willy@infradead.org>
Diffstat (limited to 'fs/ntfs')
-rw-r--r--fs/ntfs/file.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c
index a8abe2296514..3436d58fbb74 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.