aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorDaniel J Blueman <daniel@quora.org>2012-04-25 12:37:14 -0400
committerJosef Bacik <josef@redhat.com>2012-05-30 10:23:30 -0400
commit2eec6c8102c62c540c637176271cfdb13d828d7b (patch)
tree35b32d27bf50122b8f89385940fb8c7a4926343b /fs/btrfs
parent0d2450abfa359ff94a2bee64a7daeba68c346c81 (diff)
Fix minor type issues
Address some minor type issues identified by sparse checker. Signed-off-by: Daniel J Blueman <daniel@quora.org>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ioctl.c2
-rw-r--r--fs/btrfs/ulist.c4
-rw-r--r--fs/btrfs/ulist.h5
3 files changed, 5 insertions, 6 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index fccde7402cfe..9ebb2c7145ad 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2916,7 +2916,7 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
2916 up_read(&info->groups_sem); 2916 up_read(&info->groups_sem);
2917 } 2917 }
2918 2918
2919 user_dest = (struct btrfs_ioctl_space_info *) 2919 user_dest = (struct btrfs_ioctl_space_info __user *)
2920 (arg + sizeof(struct btrfs_ioctl_space_args)); 2920 (arg + sizeof(struct btrfs_ioctl_space_args));
2921 2921
2922 if (copy_to_user(user_dest, dest_orig, alloc_size)) 2922 if (copy_to_user(user_dest, dest_orig, alloc_size))
diff --git a/fs/btrfs/ulist.c b/fs/btrfs/ulist.c
index 12f5147bd2b1..ad993bc2df93 100644
--- a/fs/btrfs/ulist.c
+++ b/fs/btrfs/ulist.c
@@ -95,7 +95,7 @@ EXPORT_SYMBOL(ulist_reinit);
95 * 95 *
96 * The allocated ulist will be returned in an initialized state. 96 * The allocated ulist will be returned in an initialized state.
97 */ 97 */
98struct ulist *ulist_alloc(unsigned long gfp_mask) 98struct ulist *ulist_alloc(gfp_t gfp_mask)
99{ 99{
100 struct ulist *ulist = kmalloc(sizeof(*ulist), gfp_mask); 100 struct ulist *ulist = kmalloc(sizeof(*ulist), gfp_mask);
101 101
@@ -144,7 +144,7 @@ EXPORT_SYMBOL(ulist_free);
144 * unaltered. 144 * unaltered.
145 */ 145 */
146int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, 146int ulist_add(struct ulist *ulist, u64 val, unsigned long aux,
147 unsigned long gfp_mask) 147 gfp_t gfp_mask)
148{ 148{
149 int i; 149 int i;
150 150
diff --git a/fs/btrfs/ulist.h b/fs/btrfs/ulist.h
index 2e25dec58ec0..6568c3527732 100644
--- a/fs/btrfs/ulist.h
+++ b/fs/btrfs/ulist.h
@@ -59,10 +59,9 @@ struct ulist {
59void ulist_init(struct ulist *ulist); 59void ulist_init(struct ulist *ulist);
60void ulist_fini(struct ulist *ulist); 60void ulist_fini(struct ulist *ulist);
61void ulist_reinit(struct ulist *ulist); 61void ulist_reinit(struct ulist *ulist);
62struct ulist *ulist_alloc(unsigned long gfp_mask); 62struct ulist *ulist_alloc(gfp_t gfp_mask);
63void ulist_free(struct ulist *ulist); 63void ulist_free(struct ulist *ulist);
64int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, 64int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, gfp_t gfp_mask);
65 unsigned long gfp_mask);
66struct ulist_node *ulist_next(struct ulist *ulist, struct ulist_node *prev); 65struct ulist_node *ulist_next(struct ulist *ulist, struct ulist_node *prev);
67 66
68#endif 67#endif