diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-07-28 10:18:58 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:18:53 -0400 |
commit | 34d73f54e2e2227cece751f168d08d3103092992 (patch) | |
tree | 08993b77d664256059a6d6bb97d10e67fdb753f8 /fs/btrfs/ulist.c | |
parent | 7e0926fe5f20b5c88e51cba68512302b10f73d2a (diff) |
Btrfs: make aux field of ulist 64 bit
Btrfs send/receive uses the aux field to store inode numbers. On
32 bit machines this may become a problem.
Also fix all users of ulist_add and ulist_add_merged.
Reported-by: Arne Jansen <sensille@gmx.net>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
Diffstat (limited to 'fs/btrfs/ulist.c')
-rw-r--r-- | fs/btrfs/ulist.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/ulist.c b/fs/btrfs/ulist.c index ab942f46b3dd..99be4c138db6 100644 --- a/fs/btrfs/ulist.c +++ b/fs/btrfs/ulist.c | |||
@@ -143,14 +143,13 @@ EXPORT_SYMBOL(ulist_free); | |||
143 | * In case of allocation failure -ENOMEM is returned and the ulist stays | 143 | * In case of allocation failure -ENOMEM is returned and the ulist stays |
144 | * unaltered. | 144 | * unaltered. |
145 | */ | 145 | */ |
146 | int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, | 146 | int ulist_add(struct ulist *ulist, u64 val, u64 aux, gfp_t gfp_mask) |
147 | gfp_t gfp_mask) | ||
148 | { | 147 | { |
149 | return ulist_add_merge(ulist, val, aux, NULL, gfp_mask); | 148 | return ulist_add_merge(ulist, val, aux, NULL, gfp_mask); |
150 | } | 149 | } |
151 | 150 | ||
152 | int ulist_add_merge(struct ulist *ulist, u64 val, unsigned long aux, | 151 | int ulist_add_merge(struct ulist *ulist, u64 val, u64 aux, |
153 | unsigned long *old_aux, gfp_t gfp_mask) | 152 | u64 *old_aux, gfp_t gfp_mask) |
154 | { | 153 | { |
155 | int i; | 154 | int i; |
156 | 155 | ||