Skip to content

Commit 91ba8cb

Browse files
Matthew Wilcox (Oracle)jankara
authored andcommitted
isofs: Remove calls to set/clear the error flag
Nobody checks the error flag on isofs folios, so stop setting and clearing it. Cc: Jan Kara <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Acked-by: Jan Kara <[email protected]> Signed-off-by: Jan Kara <[email protected]> Message-Id: <[email protected]>
1 parent 72a5425 commit 91ba8cb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/isofs/compress.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio)
346346
for (i = 0; i < pcount; i++, index++) {
347347
if (i != full_page)
348348
pages[i] = grab_cache_page_nowait(mapping, index);
349-
if (pages[i])
350-
ClearPageError(pages[i]);
351349
}
352350

353351
err = zisofs_fill_pages(inode, full_page, pcount, pages);
@@ -356,8 +354,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio)
356354
for (i = 0; i < pcount; i++) {
357355
if (pages[i]) {
358356
flush_dcache_page(pages[i]);
359-
if (i == full_page && err)
360-
SetPageError(pages[i]);
361357
unlock_page(pages[i]);
362358
if (i != full_page)
363359
put_page(pages[i]);

0 commit comments

Comments
 (0)