summaryrefslogtreecommitdiffstats
path: root/fs/coda/coda_linux.h
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-24 00:01:59 +0200
commitdb6172c41194576ba2a27e64fa2a5576d11d6eb9 (patch)
tree8f0090f98145fc51ec956d39d38d41fe757755f4 /fs/coda/coda_linux.h
parentMerge branch 'fscache-fixes' into for-next (diff)
downloadlinux-db6172c41194576ba2a27e64fa2a5576d11d6eb9.tar.xz
linux-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/coda/coda_linux.h')
-rw-r--r--fs/coda/coda_linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/coda_linux.h b/fs/coda/coda_linux.h
index d6f7a76a1f5b..f829fe963f5b 100644
--- a/fs/coda/coda_linux.h
+++ b/fs/coda/coda_linux.h
@@ -79,7 +79,7 @@ void coda_sysctl_clean(void);
static inline struct coda_inode_info *ITOC(struct inode *inode)
{
- return list_entry(inode, struct coda_inode_info, vfs_inode);
+ return container_of(inode, struct coda_inode_info, vfs_inode);
}
static __inline__ struct CodaFid *coda_i2f(struct inode *inode)