summaryrefslogtreecommitdiff
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-03-19 14:28:04 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2015-06-24 01:01:59 +0300
commitdb6172c41194576ba2a27e64fa2a5576d11d6eb9 (patch)
tree8f0090f98145fc51ec956d39d38d41fe757755f4 /fs/hfsplus
parent8ea3a7c0df05b2cb33e2d63aa1c964308724b1c4 (diff)
downloadlinux-db6172c41194576ba2a27e64fa2a5576d11d6eb9.tar.xz
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>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r--fs/hfsplus/hfsplus_fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/hfsplus_fs.h b/fs/hfsplus/hfsplus_fs.h
index b0441d65fa54..f91a1faf819e 100644
--- a/fs/hfsplus/hfsplus_fs.h
+++ b/fs/hfsplus/hfsplus_fs.h
@@ -263,7 +263,7 @@ struct hfsplus_inode_info {
static inline struct hfsplus_inode_info *HFSPLUS_I(struct inode *inode)
{
- return list_entry(inode, struct hfsplus_inode_info, vfs_inode);
+ return container_of(inode, struct hfsplus_inode_info, vfs_inode);
}
/*