diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-05-30 23:21:01 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-05-31 13:31:41 +0300 |
commit | 8f3ab6e4bebe789f23690cf57fb1a648c4422b9d (patch) | |
tree | 4789710384ed481b1aa7882201c913e83985c3e1 /fs/nfs/write.c | |
parent | d15b00b1e588ea88a747bd70f6e360870088f5d2 (diff) | |
download | linux-8f3ab6e4bebe789f23690cf57fb1a648c4422b9d.tar.xz |
nfs: Remove calls to folio_set_error
Common code doesn't test the error flag, so we don't need to set it in
nfs. We can use folio_end_read() to combine the setting (or not)
of the uptodate flag and clearing the lock flag.
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Anna Schumaker <anna@kernel.org>
Cc: linux-nfs@vger.kernel.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20240530202110.2653630-10-willy@infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 2329cbb0e446..a91463ab87a0 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -311,7 +311,6 @@ static void nfs_mapping_set_error(struct folio *folio, int error) { struct address_space *mapping = folio_file_mapping(folio); - folio_set_error(folio); filemap_set_wb_err(mapping, error); if (mapping->host) errseq_set(&mapping->host->i_sb->s_wb_err, |