提交 fbbccec9 编写于 作者: N Noah Watkins 提交者: Sage Weil

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: NNoah Watkins <noah@noahdesu.com>
Signed-off-by: NSage Weil <sage@newdream.net>
上级 6b805185
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册