diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-05-05 11:18:28 +0200 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2025-05-22 09:12:26 +0200 |
| commit | e9a4af22af8fad2dd779e16759d86fb4cf037a73 (patch) | |
| tree | 94543d57e825c699d7b503156048bc36d77a6385 /fs/gfs2 | |
| parent | gfs2: Fix usage of bio->bi_status in gfs2_end_log_write (diff) | |
| download | linux-e9a4af22af8fad2dd779e16759d86fb4cf037a73.tar.gz linux-e9a4af22af8fad2dd779e16759d86fb4cf037a73.zip | |
gfs: don't check for AOP_WRITEPAGE_ACTIVATE in gfs2_write_jdata_batch
__gfs2_jdata_write_folio can't return AOP_WRITEPAGE_ACTIVATE, so don't
check for it in gfs2_write_jdata_batch.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
| -rw-r--r-- | fs/gfs2/aops.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 68fc8af14700..5be99d87bcdc 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -228,24 +228,16 @@ continue_unlock: ret = __gfs2_jdata_write_folio(folio, wbc); if (unlikely(ret)) { - if (ret == AOP_WRITEPAGE_ACTIVATE) { - folio_unlock(folio); - ret = 0; - } else { - - /* - * done_index is set past this page, - * so media errors will not choke - * background writeout for the entire - * file. This has consequences for - * range_cyclic semantics (ie. it may - * not be suitable for data integrity - * writeout). - */ - *done_index = folio_next_index(folio); - ret = 1; - break; - } + /* + * done_index is set past this page, so media errors + * will not choke background writeout for the entire + * file. This has consequences for range_cyclic + * semantics (ie. it may not be suitable for data + * integrity writeout). + */ + *done_index = folio_next_index(folio); + ret = 1; + break; } /* |
