diff options
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index 68cc22083639..5bdf952f414b 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -768,3 +768,10 @@ static inline bool nfs_error_is_fatal(int err) | |||
768 | return false; | 768 | return false; |
769 | } | 769 | } |
770 | } | 770 | } |
771 | |||
772 | static inline void nfs_context_set_write_error(struct nfs_open_context *ctx, int error) | ||
773 | { | ||
774 | ctx->error = error; | ||
775 | smp_wmb(); | ||
776 | set_bit(NFS_CONTEXT_ERROR_WRITE, &ctx->flags); | ||
777 | } | ||