Lines Matching defs:ip
19 extern int gfs2_internal_read(struct gfs2_inode *ip,
24 static inline int gfs2_is_stuffed(const struct gfs2_inode *ip)
26 return !ip->i_height;
29 static inline int gfs2_is_jdata(const struct gfs2_inode *ip)
31 return ip->i_diskflags & GFS2_DIF_JDATA;
34 static inline int gfs2_is_writeback(const struct gfs2_inode *ip)
36 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
37 return (sdp->sd_args.ar_data == GFS2_DATA_WRITEBACK) && !gfs2_is_jdata(ip);
40 static inline int gfs2_is_ordered(const struct gfs2_inode *ip)
42 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
43 return (sdp->sd_args.ar_data == GFS2_DATA_ORDERED) && !gfs2_is_jdata(ip);
46 static inline int gfs2_is_dir(const struct gfs2_inode *ip)
48 return S_ISDIR(ip->i_inode.i_mode);
70 static inline int gfs2_check_inum(const struct gfs2_inode *ip, u64 no_addr,
73 return ip->i_no_addr == no_addr && ip->i_no_formal_ino == no_formal_ino;
76 static inline void gfs2_inum_out(const struct gfs2_inode *ip,
79 dent->de_inum.no_formal_ino = cpu_to_be64(ip->i_no_formal_ino);
80 dent->de_inum.no_addr = cpu_to_be64(ip->i_no_addr);
90 extern int gfs2_inode_refresh(struct gfs2_inode *ip);
93 extern int gfs2_change_nlink(struct gfs2_inode *ip, int diff);
100 extern int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr);
102 extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
103 extern void gfs2_dinode_print(const struct gfs2_inode *ip);