fs: cleanup slight list_entry abuse

list_entry is just a wrapper for container_of, but it is arguably
wrong (and slightly confusing) to use it when the pointed-to struct
member is not a struct list_head. Use container_of directly instead.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Rasmus Villemoes
2015-03-19 12:28:04 +01:00
committed by Al Viro
parent 8ea3a7c0df
commit db6172c411
13 changed files with 13 additions and 13 deletions

View File

@@ -56,7 +56,7 @@ struct udf_inode_info {
static inline struct udf_inode_info *UDF_I(struct inode *inode)
{
return list_entry(inode, struct udf_inode_info, vfs_inode);
return container_of(inode, struct udf_inode_info, vfs_inode);
}
#endif /* _UDF_I_H) */