summaryrefslogtreecommitdiff
path: root/fs/orangefs/downcall.h
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-08-02 23:33:34 +0300
committerMartin Brandenburg <martin@omnibond.com>2016-08-08 22:12:28 +0300
commit680908e5046bdd37a678691d881d98486c3e9a53 (patch)
tree3a673c904db260dbb81fa423e844d898eda7c671 /fs/orangefs/downcall.h
parenta6dff80a964176daca0d41492a6ca280d2246324 (diff)
downloadlinux-680908e5046bdd37a678691d881d98486c3e9a53.tar.xz
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/downcall.h')
-rw-r--r--fs/orangefs/downcall.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/orangefs/downcall.h b/fs/orangefs/downcall.h
index 66b99210f1f9..db6e8722a89e 100644
--- a/fs/orangefs/downcall.h
+++ b/fs/orangefs/downcall.h
@@ -83,7 +83,10 @@ struct orangefs_listxattr_response {
};
struct orangefs_param_response {
- __s64 value;
+ union {
+ __s64 value64;
+ __s32 value32[2];
+ } u;
};
#define PERF_COUNT_BUF_SIZE 4096