mirror-linux/include/linux/ceph
Liang Jie 2f0805d7c0 ceph: streamline request head structures in MDS client
The existence of the ceph_mds_request_head_old structure in the MDS
client code is no longer required due to improvements in handling
different MDS request header versions. This patch removes the now
redundant ceph_mds_request_head_old structure and replaces its usage
with the flexible and extensible ceph_mds_request_head structure.

Changes include:
- Modification of find_legacy_request_head to directly cast the
  pointer to ceph_mds_request_head_legacy without going through the
  old structure.
- Update sizeof calculations in create_request_message to use
  offsetofend for consistency and future-proofing, rather than
  referencing the old structure.
- Use of the structured ceph_mds_request_head directly instead of the
  old one.

Additionally, this consolidation normalizes the handling of
request_head_version v1 to align with versions v2 and v3, leading to
a more consistent and maintainable codebase.

These changes simplify the codebase and reduce potential confusion
stemming from the existence of an obsolete structure.

Signed-off-by: Liang Jie <liangjie@lixiang.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2025-01-27 16:07:42 +01:00
..
auth.h
buffer.h
ceph_debug.h ceph: Use no_printk() helper 2024-03-19 16:11:42 +01:00
ceph_features.h
ceph_frag.h
ceph_fs.h ceph: streamline request head structures in MDS client 2025-01-27 16:07:42 +01:00
ceph_hash.h
cls_lock_client.h
debugfs.h
decode.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
libceph.h libceph: Remove unused pagevec functions 2024-11-18 17:34:35 +01:00
messenger.h libceph: just wait for more data to be available on the socket 2024-02-07 14:43:29 +01:00
mon_client.h
msgpool.h
msgr.h
osd_client.h libceph: Remove unused ceph_osdc_watch_check 2024-11-18 17:34:35 +01:00
osdmap.h
pagelist.h libceph: Remove unused ceph_pagelist functions 2024-11-18 17:34:35 +01:00
rados.h
string_table.h
striper.h
types.h