Skip to content

Commit 326a6fd

Browse files
Matthew Wilcox (Oracle)aalexandrovich
authored andcommitted
ntfs3: Remove calls to set/clear the error flag
Nobody checks the error flag on ntfs3 folios, so stop setting and clearing it. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Konstantin Komarov <[email protected]>
1 parent 562d060 commit 326a6fd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/ntfs3/frecord.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,9 +2145,6 @@ int ni_readpage_cmpr(struct ntfs_inode *ni, struct page *page)
21452145
err = ni_read_frame(ni, frame_vbo, pages, pages_per_frame);
21462146

21472147
out1:
2148-
if (err)
2149-
SetPageError(page);
2150-
21512148
for (i = 0; i < pages_per_frame; i++) {
21522149
pg = pages[i];
21532150
if (i == idx || !pg)
@@ -2720,7 +2717,6 @@ int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages,
27202717
for (i = 0; i < pages_per_frame; i++) {
27212718
pg = pages[i];
27222719
kunmap(pg);
2723-
ClearPageError(pg);
27242720
SetPageUptodate(pg);
27252721
}
27262722

0 commit comments

Comments
 (0)