diff options
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 8efd4ba60774..983bf9ab3bd5 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -505,6 +505,12 @@ ceph_sb_to_mdsc(const struct super_block *sb) return (struct ceph_mds_client *)ceph_sb_to_fs_client(sb)->mdsc; } +static inline struct ceph_client * +ceph_inode_to_client(const struct inode *inode) +{ + return (struct ceph_client *)ceph_inode_to_fs_client(inode)->client; +} + static inline struct ceph_vino ceph_vino(const struct inode *inode) { |