mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
8ea3a7c0df
commit
db6172c411
13 changed files with 13 additions and 13 deletions
|
|
@ -112,7 +112,7 @@ BEFS_SB(const struct super_block *super)
|
|||
static inline struct befs_inode_info *
|
||||
BEFS_I(const struct inode *inode)
|
||||
{
|
||||
return list_entry(inode, struct befs_inode_info, vfs_inode);
|
||||
return container_of(inode, struct befs_inode_info, vfs_inode);
|
||||
}
|
||||
|
||||
static inline befs_blocknr_t
|
||||
|
|
|
|||
Loading…
Reference in a new issue