File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ struct affs_inode_info {
6464/* short cut to get to the affs specific inode data */
6565static inline struct affs_inode_info * AFFS_I (struct inode * inode )
6666{
67- return list_entry (inode , struct affs_inode_info , vfs_inode );
67+ return container_of (inode , struct affs_inode_info , vfs_inode );
6868}
6969
7070/*
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ BEFS_SB(const struct super_block *super)
112112static inline struct befs_inode_info *
113113BEFS_I (const struct inode * inode )
114114{
115- return list_entry (inode , struct befs_inode_info , vfs_inode );
115+ return container_of (inode , struct befs_inode_info , vfs_inode );
116116}
117117
118118static inline befs_blocknr_t
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ void coda_sysctl_clean(void);
7979
8080static inline struct coda_inode_info * ITOC (struct inode * inode )
8181{
82- return list_entry (inode , struct coda_inode_info , vfs_inode );
82+ return container_of (inode , struct coda_inode_info , vfs_inode );
8383}
8484
8585static __inline__ struct CodaFid * coda_i2f (struct inode * inode )
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ extern void hfs_mark_mdb_dirty(struct super_block *sb);
252252#define __hfs_u_to_mtime (sec ) cpu_to_be32(sec + 2082844800U - sys_tz.tz_minuteswest * 60)
253253#define __hfs_m_to_utime (sec ) (be32_to_cpu(sec) - 2082844800U + sys_tz.tz_minuteswest * 60)
254254
255- #define HFS_I (inode ) (list_entry (inode, struct hfs_inode_info, vfs_inode))
255+ #define HFS_I (inode ) (container_of (inode, struct hfs_inode_info, vfs_inode))
256256#define HFS_SB (sb ) ((struct hfs_sb_info *)(sb)->s_fs_info)
257257
258258#define hfs_m_to_utime (time ) (struct timespec){ .tv_sec = __hfs_m_to_utime(time) }
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ struct hfsplus_inode_info {
263263
264264static inline struct hfsplus_inode_info * HFSPLUS_I (struct inode * inode )
265265{
266- return list_entry (inode , struct hfsplus_inode_info , vfs_inode );
266+ return container_of (inode , struct hfsplus_inode_info , vfs_inode );
267267}
268268
269269/*
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ extern const struct address_space_operations hpfs_symlink_aops;
304304
305305static inline struct hpfs_inode_info * hpfs_i (struct inode * inode )
306306{
307- return list_entry (inode , struct hpfs_inode_info , vfs_inode );
307+ return container_of (inode , struct hpfs_inode_info , vfs_inode );
308308}
309309
310310static inline struct hpfs_sb_info * hpfs_sb (struct super_block * sb )
Original file line number Diff line number Diff line change 1919struct kstatfs ;
2020struct kvec ;
2121
22- #define JFFS2_INODE_INFO (i ) (list_entry (i, struct jffs2_inode_info, vfs_inode))
22+ #define JFFS2_INODE_INFO (i ) (container_of (i, struct jffs2_inode_info, vfs_inode))
2323#define OFNI_EDONI_2SFFJ (f ) (&(f)->vfs_inode)
2424#define JFFS2_SB_INFO (sb ) (sb->s_fs_info)
2525#define OFNI_BS_2SFFJ (c ) ((struct super_block *)c->os_priv)
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ struct jfs_sb_info {
206206
207207static inline struct jfs_inode_info * JFS_IP (struct inode * inode )
208208{
209- return list_entry (inode , struct jfs_inode_info , vfs_inode );
209+ return container_of (inode , struct jfs_inode_info , vfs_inode );
210210}
211211
212212static inline int jfs_dirtable_inline (struct inode * inode )
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ static inline struct minix_sb_info *minix_sb(struct super_block *sb)
8484
8585static inline struct minix_inode_info * minix_i (struct inode * inode )
8686{
87- return list_entry (inode , struct minix_inode_info , vfs_inode );
87+ return container_of (inode , struct minix_inode_info , vfs_inode );
8888}
8989
9090static inline unsigned minix_blocks_needed (unsigned bits , unsigned blocksize )
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ typedef struct {
239239 */
240240static inline ntfs_inode * NTFS_I (struct inode * inode )
241241{
242- return (ntfs_inode * )list_entry (inode , big_ntfs_inode , vfs_inode );
242+ return (ntfs_inode * )container_of (inode , big_ntfs_inode , vfs_inode );
243243}
244244
245245static inline struct inode * VFS_I (ntfs_inode * ni )
You can’t perform that action at this time.
0 commit comments