diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-08-02 16:33:34 -0400 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-08 15:12:28 -0400 |
commit | 680908e5046bdd37a678691d881d98486c3e9a53 (patch) | |
tree | 3a673c904db260dbb81fa423e844d898eda7c671 /fs/orangefs/upcall.h | |
parent | a6dff80a964176daca0d41492a6ca280d2246324 (diff) | |
download | linux-680908e5046bdd37a678691d881d98486c3e9a53.tar.gz linux-680908e5046bdd37a678691d881d98486c3e9a53.tar.bz2 linux-680908e5046bdd37a678691d881d98486c3e9a53.zip |
orangefs: turn param response value into union
This will support a upcoming request where two related values need to be
updated atomically.
This was done without a union in the OrangeFS server source already. Since
that will break the kernel protocol, it has been fixed there and done here
in a way that does not break the kernel protocol.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/upcall.h')
-rw-r--r-- | fs/orangefs/upcall.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/orangefs/upcall.h b/fs/orangefs/upcall.h index 03a4360dcd38..7c29fdf08ec5 100644 --- a/fs/orangefs/upcall.h +++ b/fs/orangefs/upcall.h @@ -187,7 +187,10 @@ enum orangefs_param_request_op { struct orangefs_param_request_s { enum orangefs_param_request_type type; enum orangefs_param_request_op op; - __s64 value; + union { + __s64 value64; + __s32 value32[2]; + } u; char s_value[ORANGEFS_MAX_DEBUG_STRING_LEN]; }; |