Message ID | 20240420025029.2166544-22-willy@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | None | expand |
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index cf02d981fc13..dce121c5a86a 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -124,7 +124,6 @@ void cifs_pages_write_failed(struct inode *inode, loff_t start, unsigned int len continue; } - folio_set_error(folio); folio_end_writeback(folio); } @@ -3156,7 +3155,6 @@ cifs_writepage_locked(struct page *page, struct writeback_control *wbc) goto retry_write; redirty_page_for_writepage(wbc, page); } else if (rc != 0) { - SetPageError(page); mapping_set_error(page->mapping, rc); } else { SetPageUptodate(page);
The folio error flag is never checked for smb folios, so remove calls to set it. Cc: Steve French <sfrench@samba.org> Cc: linux-cifs@vger.kernel.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- fs/smb/client/file.c | 2 -- 1 file changed, 2 deletions(-)