Commit 91ba8cb1 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Jan Kara

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 <jack@suse.cz>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Message-Id: <20240420025029.2166544-14-willy@infradead.org>
parent 72a5425a
...@@ -346,8 +346,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio) ...@@ -346,8 +346,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio)
for (i = 0; i < pcount; i++, index++) { for (i = 0; i < pcount; i++, index++) {
if (i != full_page) if (i != full_page)
pages[i] = grab_cache_page_nowait(mapping, index); pages[i] = grab_cache_page_nowait(mapping, index);
if (pages[i])
ClearPageError(pages[i]);
} }
err = zisofs_fill_pages(inode, full_page, pcount, pages); err = zisofs_fill_pages(inode, full_page, pcount, pages);
...@@ -356,8 +354,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio) ...@@ -356,8 +354,6 @@ static int zisofs_read_folio(struct file *file, struct folio *folio)
for (i = 0; i < pcount; i++) { for (i = 0; i < pcount; i++) {
if (pages[i]) { if (pages[i]) {
flush_dcache_page(pages[i]); flush_dcache_page(pages[i]);
if (i == full_page && err)
SetPageError(pages[i]);
unlock_page(pages[i]); unlock_page(pages[i]);
if (i != full_page) if (i != full_page)
put_page(pages[i]); put_page(pages[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment