projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca02bca
)
ntfs: Remove check for PageError
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Tue, 17 May 2022 22:12:25 +0000
(18:12 -0400)
committer
Matthew Wilcox (Oracle)
<willy@infradead.org>
Wed, 29 Jun 2022 12:51:06 +0000
(08:51 -0400)
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>
fs/ntfs/file.c
patch
|
blob
|
history
diff --git
a/fs/ntfs/file.c
b/fs/ntfs/file.c
index a8abe2296514e4ab26d8f4fae266f86234b8c314..3436d58fbb74e75743fe2af243e0e706b7caa03d 100644
(file)
--- 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.