diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 2caab7a4eae0c92fc0be6582e339c1392bc5b98a..54de3e0906dcfca7f6a1d447f748a3b50bb6a213 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c @@ -387,11 +387,8 @@ static int nfs_write_end(struct file *file, struct address_space *mapping, return status; NFS_I(mapping->host)->write_io += copied; - if (nfs_ctx_key_to_expire(ctx, mapping->host)) { - status = nfs_wb_all(mapping->host); - if (status < 0) - return status; - } + if (nfs_ctx_key_to_expire(ctx, mapping->host)) + nfs_wb_all(mapping->host); return copied; }