diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-03-19 12:28:04 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-06-23 18:01:59 -0400 |
commit | db6172c41194576ba2a27e64fa2a5576d11d6eb9 (patch) | |
tree | 8f0090f98145fc51ec956d39d38d41fe757755f4 /fs/sysv | |
parent | 8ea3a7c0df05b2cb33e2d63aa1c964308724b1c4 (diff) | |
download | linux-db6172c41194576ba2a27e64fa2a5576d11d6eb9.tar.bz2 |
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/sysv')
-rw-r--r-- | fs/sysv/sysv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysv/sysv.h b/fs/sysv/sysv.h index 2c13525131cd..6c212288adcb 100644 --- a/fs/sysv/sysv.h +++ b/fs/sysv/sysv.h @@ -73,7 +73,7 @@ struct sysv_inode_info { static inline struct sysv_inode_info *SYSV_I(struct inode *inode) { - return list_entry(inode, struct sysv_inode_info, vfs_inode); + return container_of(inode, struct sysv_inode_info, vfs_inode); } static inline struct sysv_sb_info *SYSV_SB(struct super_block *sb) |