diff options
author | Sage Weil <sage@newdream.net> | 2009-11-04 20:40:05 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-05 01:36:12 +0100 |
commit | 6a18be16f7513ea8a4923c161ce073987932cbdb (patch) | |
tree | ebd337329a22deb4289379dd7ccfb0e5db6bd72c /fs/ceph/file.c | |
parent | ceph: fix endian conversions for ceph_pg (diff) | |
download | linux-6a18be16f7513ea8a4923c161ce073987932cbdb.tar.xz linux-6a18be16f7513ea8a4923c161ce073987932cbdb.zip |
ceph: fix sparse endian warning
Use the __le macro, even though for -1 it doesn't matter.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 1bd57c8953bf..fc8aff4767d3 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -52,7 +52,7 @@ prepare_open_request(struct super_block *sb, int flags, int create_mode) 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; } |