mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
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: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz> Message-Id: <20240420025029.2166544-14-willy@infradead.org>
This commit is contained in:
parent
72a5425adc
commit
91ba8cb1b0
@ -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)
|
|||||||
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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user