Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ceph: fix incorrect old_size length in ceph_mds_request_args

The 'old_size' is a __le64 type since birth, not sure why the
kclient incorrectly switched it to __le32. This change is okay
won't break anything because union will always allocate more memory
than the 'open' member needed.

Rename 'file_replication' to 'pool' as ceph did. Though this 'open'
struct may never be used in kclient in future, it's confusing when
going through the ceph code.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

authored by

Xiubo Li and committed by
Ilya Dryomov
b53aca4b 020bc44a

+3 -3
+3 -3
include/linux/ceph/ceph_fs.h
··· 433 433 __le32 stripe_unit; /* layout for newly created file */ 434 434 __le32 stripe_count; /* ... */ 435 435 __le32 object_size; 436 - __le32 file_replication; 437 - __le32 mask; /* CEPH_CAP_* */ 438 - __le32 old_size; 436 + __le32 pool; 437 + __le32 mask; /* CEPH_CAP_* */ 438 + __le64 old_size; 439 439 } __attribute__ ((packed)) open; 440 440 struct { 441 441 __le32 flags;