27 #include <linux/kernel.h>
62 #ifdef CONFIG_NILFS_XATTR
123 #define NILFS_MDT_INO_BITS \
124 ((unsigned int)(1 << NILFS_DAT_INO | 1 << NILFS_CPFILE_INO | \
125 1 << NILFS_SUFILE_INO | 1 << NILFS_IFILE_INO | \
126 1 << NILFS_ATIME_INO | 1 << NILFS_SKETCH_INO))
128 #define NILFS_SYS_INO_BITS \
129 ((unsigned int)(1 << NILFS_ROOT_INO) | NILFS_MDT_INO_BITS)
131 #define NILFS_FIRST_INO(sb) (((struct the_nilfs *)sb->s_fs_info)->ns_first_ino)
133 #define NILFS_MDT_INODE(sb, ino) \
134 ((ino) < NILFS_FIRST_INO(sb) && (NILFS_MDT_INO_BITS & (1 << (ino))))
135 #define NILFS_VALID_INODE(sb, ino) \
136 ((ino) >= NILFS_FIRST_INO(sb) || (NILFS_SYS_INO_BITS & (1 << (ino))))
157 #define NILFS_TI_MAGIC 0xd9e392fb
160 #define NILFS_TI_DYNAMIC_ALLOC 0x0001
161 #define NILFS_TI_SYNC 0x0002
163 #define NILFS_TI_GC 0x0004
164 #define NILFS_TI_COMMIT 0x0008
165 #define NILFS_TI_WRITER 0x0010
173 static inline void nilfs_set_transaction_flag(
unsigned int flag)
180 static inline int nilfs_test_transaction_flag(
unsigned int flag)
189 static inline int nilfs_doing_gc(
void)
194 static inline int nilfs_doing_construction(
void)
202 #ifdef CONFIG_NILFS_POSIX_ACL
203 #error "NILFS: not yet supported POSIX ACL"
204 extern int nilfs_acl_chmod(
struct inode *);
205 extern int nilfs_init_acl(
struct inode *,
struct inode *);
207 static inline int nilfs_acl_chmod(
struct inode *
inode)
212 static inline int nilfs_init_acl(
struct inode *
inode,
struct inode *dir)
219 #define NILFS_ATIME_DISABLE
222 #define NILFS_FL_INHERITED \
223 (FS_SECRM_FL | FS_UNRM_FL | FS_COMPR_FL | FS_SYNC_FL | \
224 FS_IMMUTABLE_FL | FS_APPEND_FL | FS_NODUMP_FL | FS_NOATIME_FL |\
225 FS_COMPRBLK_FL | FS_NOCOMP_FL | FS_NOTAIL_FL | FS_DIRSYNC_FL)
301 struct nilfs_super_block *);