aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-11-02 15:48:34 -0400
committerChris Mason <chris.mason@oracle.com>2011-11-06 03:08:49 -0500
commit740c3d226cbba6cd6a32adfb66809c94938f3e57 (patch)
tree375a5d2ee3bdc66f29e69e99c3691c3200407820 /fs/btrfs/ioctl.h
parent806468f8bf76a3cb2b626dd282946a6c9c0a50f0 (diff)
Btrfs: fix the new inspection ioctls for 32 bit compat
The new ioctls to follow backrefs are not clean for 32/64 bit compat. This reworks them for u64s everywhere. They are brand new, so there are no problems with changing the interface now. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r--fs/btrfs/ioctl.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h
index 2da30d4950e6..252ae9915de8 100644
--- a/fs/btrfs/ioctl.h
+++ b/fs/btrfs/ioctl.h
@@ -198,24 +198,23 @@ struct btrfs_data_container {
198 __u32 bytes_missing; /* out -- additional bytes needed for result */ 198 __u32 bytes_missing; /* out -- additional bytes needed for result */
199 __u32 elem_cnt; /* out */ 199 __u32 elem_cnt; /* out */
200 __u32 elem_missed; /* out */ 200 __u32 elem_missed; /* out */
201 union { 201 __u64 val[0]; /* out */
202 char *str[0]; /* out */
203 __u64 val[0]; /* out */
204 };
205}; 202};
206 203
207struct btrfs_ioctl_ino_path_args { 204struct btrfs_ioctl_ino_path_args {
208 __u64 inum; /* in */ 205 __u64 inum; /* in */
209 __u32 size; /* in */ 206 __u32 size; /* in */
210 __u64 reserved[4]; 207 __u64 reserved[4];
211 struct btrfs_data_container *fspath; /* out */ 208 /* struct btrfs_data_container *fspath; out */
209 __u64 fspath; /* out */
212}; 210};
213 211
214struct btrfs_ioctl_logical_ino_args { 212struct btrfs_ioctl_logical_ino_args {
215 __u64 logical; /* in */ 213 __u64 logical; /* in */
216 __u32 size; /* in */ 214 __u32 size; /* in */
217 __u64 reserved[4]; 215 __u64 reserved[4];
218 struct btrfs_data_container *inodes; /* out */ 216 /* struct btrfs_data_container *inodes; out */
217 __u64 inodes;
219}; 218};
220 219
221#define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ 220#define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \