Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbbccec9 authored by Noah Watkins's avatar Noah Watkins Committed by Sage Weil
Browse files

ceph: replace list_entry with container_of



Usage of non-list.h list_entry function for container_of
functionality replaced with direct use of container_of.

Signed-off-by: default avatarNoah Watkins <noah@noahdesu.com>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 6b805185
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ struct ceph_inode_info {

static inline struct ceph_inode_info *ceph_inode(struct inode *inode)
{
	return list_entry(inode, struct ceph_inode_info, vfs_inode);
	return container_of(inode, struct ceph_inode_info, vfs_inode);
}

static inline void ceph_i_clear(struct inode *inode, unsigned mask)