linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 21/30] smb: Remove calls to set folio error flag
       [not found] <20240420025029.2166544-1-willy@infradead.org>
@ 2024-04-20  2:50 ` Matthew Wilcox (Oracle)
  0 siblings, 0 replies; only message in thread
From: Matthew Wilcox (Oracle) @ 2024-04-20  2:50 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Matthew Wilcox (Oracle), Steve French, linux-cifs

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(-)

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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-20  2:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240420025029.2166544-1-willy@infradead.org>
2024-04-20  2:50 ` [PATCH 21/30] smb: Remove calls to set folio error flag Matthew Wilcox (Oracle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).