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>
This commit is contained in:
parent
51042122d4
commit
6a18be16f7
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue