Use the __le macro, even though for -1 it doesn't matter.
Signed-off-by: Sage Weil <sage@newdream.net>
req->r_fmode = ceph_flags_to_mode(flags);
req->r_args.open.flags = cpu_to_le32(flags);
req->r_args.open.mode = cpu_to_le32(create_mode);
- req->r_args.open.preferred = -1;
+ req->r_args.open.preferred = cpu_to_le32(-1);
out:
return req;
}
struct ceph_client *client;
int err;
int (*compare_super)(struct super_block *, void *) = ceph_compare_super;
- const char *path = 0;
+ const char *path = NULL;
struct ceph_mount_args *args;
dout("ceph_get_sb\n");