summaryrefslogtreecommitdiffstats
path: root/fs/jffs2
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-03-19 12:28:04 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-06-23 18:01:59 -0400
commitdb6172c41194576ba2a27e64fa2a5576d11d6eb9 (patch)
tree8f0090f98145fc51ec956d39d38d41fe757755f4 /fs/jffs2
parent8ea3a7c0df05b2cb33e2d63aa1c964308724b1c4 (diff)
downloadlinux-stable-db6172c41194576ba2a27e64fa2a5576d11d6eb9.tar.gz
linux-stable-db6172c41194576ba2a27e64fa2a5576d11d6eb9.tar.bz2
linux-stable-db6172c41194576ba2a27e64fa2a5576d11d6eb9.zip
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/jffs2')
-rw-r--r--fs/jffs2/os-linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/os-linux.h b/fs/jffs2/os-linux.h
index d200a9b8fd5e..824e61ede465 100644
--- a/fs/jffs2/os-linux.h
+++ b/fs/jffs2/os-linux.h
@@ -19,7 +19,7 @@
struct kstatfs;
struct kvec;
-#define JFFS2_INODE_INFO(i) (list_entry(i, struct jffs2_inode_info, vfs_inode))
+#define JFFS2_INODE_INFO(i) (container_of(i, struct jffs2_inode_info, vfs_inode))
#define OFNI_EDONI_2SFFJ(f) (&(f)->vfs_inode)
#define JFFS2_SB_INFO(sb) (sb->s_fs_info)
#define OFNI_BS_2SFFJ(c) ((struct super_block *)c->os_priv)