10 #ifndef __INODE_DOT_H__
11 #define __INODE_DOT_H__
23 static inline int gfs2_is_stuffed(
const struct gfs2_inode *
ip)
28 static inline int gfs2_is_jdata(
const struct gfs2_inode *
ip)
33 static inline int gfs2_is_writeback(
const struct gfs2_inode *
ip)
39 static inline int gfs2_is_ordered(
const struct gfs2_inode *ip)
45 static inline int gfs2_is_dir(
const struct gfs2_inode *ip)
50 static inline void gfs2_set_inode_blocks(
struct inode *
inode,
u64 blocks)
56 static inline u64 gfs2_get_inode_blocks(
const struct inode *
inode)
62 static inline void gfs2_add_inode_blocks(
struct inode *
inode,
s64 change)
69 static inline int gfs2_check_inum(
const struct gfs2_inode *ip,
u64 no_addr,
75 static inline void gfs2_inum_out(
const struct gfs2_inode *ip,
82 static inline int gfs2_check_internal_file_size(
struct inode *inode,
86 if (size < minsize || size > maxsize)
97 u64 no_addr,
u64 no_formal_ino,
101 unsigned int blktype);
121 #ifdef CONFIG_GFS2_FS_LOCKING_DLM
125 static inline int gfs2_localflocks(
const struct gfs2_sbd *sdp)
127 return sdp->
sd_args.ar_localflocks;
130 #define gfs2_file_fops gfs2_file_fops_nolock
131 #define gfs2_dir_fops gfs2_dir_fops_nolock
133 static inline int gfs2_localflocks(
const struct gfs2_sbd *sdp)