diff options
author | Trond Myklebust <trondmy@gmail.com> | 2019-04-07 20:59:05 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-04-25 21:18:14 +0300 |
commit | 6fbda89b257f25694bf4892ddbbaa472f581533b (patch) | |
tree | 83d463f144d68766e007bd8caf3e1e9fbd8e3470 /fs/nfs/internal.h | |
parent | aded8d7b54f250af6deb72fde475291cfba513d1 (diff) | |
download | linux-6fbda89b257f25694bf4892ddbbaa472f581533b.tar.xz |
NFS: Replace custom error reporting mechanism with generic one
Replace the NFS custom error reporting mechanism with the generic
mapping_set_error().
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 3cefd0ed01be..196534634c3a 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h @@ -773,9 +773,3 @@ static inline bool nfs_error_is_fatal(int err) } } -static inline void nfs_context_set_write_error(struct nfs_open_context *ctx, int error) -{ - ctx->error = error; - smp_wmb(); - set_bit(NFS_CONTEXT_ERROR_WRITE, &ctx->flags); -} |