fs/cifs/file.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 5365a3299088..7061d263315d 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -2858,7 +2858,6 @@ static int cifs_writepages_region(struct address_space *mapping, loff_t start, loff_t end, loff_t *_next) { struct folio_batch fbatch; - int skips = 0; folio_batch_init(&fbatch); do { @@ -2927,17 +2926,6 @@ static int cifs_writepages_region(struct address_space *mapping, return ret; skip_write: - /* - * Too many skipped writes, or need to reschedule? - * Treat it as a write error without an error code. - */ - if (skips >= 5 || need_resched()) { - ret = 0; - goto write_error; - } - - /* Otherwise, just skip that folio and go on to the next */ - skips++; start += folio_size(folio); continue; }