]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: parse subvolume_id from InodeStat v9 and store in inode
authorAlex Markuze <amarkuze@redhat.com>
Tue, 10 Feb 2026 09:06:25 +0000 (09:06 +0000)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2026 14:44:00 +0000 (16:44 +0200)
commitd16ea4af8656872c696b2ea8c1b4bff81ea33d3c
treeb057f7c688cdc3672b611d0391c325850811e2c5
parenta5a7b3c7dc87f257d4c1513e6d5f45c57050cc0c
ceph: parse subvolume_id from InodeStat v9 and store in inode

Add support for parsing the subvolume_id field from InodeStat v9 and
storing it in the inode for later use by subvolume metrics tracking.

The subvolume_id identifies which CephFS subvolume an inode belongs to,
enabling per-subvolume I/O metrics collection and reporting.

This patch:
- Adds subvolume_id field to struct ceph_mds_reply_info_in
- Adds i_subvolume_id field to struct ceph_inode_info
- Parses subvolume_id from v9 InodeStat in parse_reply_info_in()
- Adds ceph_inode_set_subvolume() helper to propagate the ID to inodes
- Initializes i_subvolume_id in inode allocation and clears on destroy

Signed-off-by: Alex Markuze <amarkuze@redhat.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/super.h