Skip to content

Commit

Permalink
ceph: replace list_entry with container_of
Browse files Browse the repository at this point in the history
Usage of non-list.h list_entry function for container_of
functionality replaced with direct use of container_of.

Signed-off-by: Noah Watkins <noah@noahdesu.com>
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Noah Watkins authored and Sage Weil committed Oct 29, 2009
1 parent 6b80518 commit fbbccec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/super.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fbbccec

Please sign in to comment.