diff options
Diffstat (limited to 'include/linux/ext3_fs.h')
| -rw-r--r-- | include/linux/ext3_fs.h | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 6b049030fbe6..5f494b465097 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h | |||
| @@ -202,14 +202,6 @@ static inline __u32 ext3_mask_flags(umode_t mode, __u32 flags) | |||
| 202 | return flags & EXT3_OTHER_FLMASK; | 202 | return flags & EXT3_OTHER_FLMASK; |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | /* | ||
| 206 | * Inode dynamic state flags | ||
| 207 | */ | ||
| 208 | #define EXT3_STATE_JDATA 0x00000001 /* journaled data exists */ | ||
| 209 | #define EXT3_STATE_NEW 0x00000002 /* inode is newly created */ | ||
| 210 | #define EXT3_STATE_XATTR 0x00000004 /* has in-inode xattrs */ | ||
| 211 | #define EXT3_STATE_FLUSH_ON_CLOSE 0x00000008 | ||
| 212 | |||
| 213 | /* Used to pass group descriptor data when online resize is done */ | 205 | /* Used to pass group descriptor data when online resize is done */ |
| 214 | struct ext3_new_group_input { | 206 | struct ext3_new_group_input { |
| 215 | __u32 group; /* Group number for this data */ | 207 | __u32 group; /* Group number for this data */ |
| @@ -560,6 +552,31 @@ static inline int ext3_valid_inum(struct super_block *sb, unsigned long ino) | |||
| 560 | (ino >= EXT3_FIRST_INO(sb) && | 552 | (ino >= EXT3_FIRST_INO(sb) && |
| 561 | ino <= le32_to_cpu(EXT3_SB(sb)->s_es->s_inodes_count)); | 553 | ino <= le32_to_cpu(EXT3_SB(sb)->s_es->s_inodes_count)); |
| 562 | } | 554 | } |
| 555 | |||
| 556 | /* | ||
| 557 | * Inode dynamic state flags | ||
| 558 | */ | ||
| 559 | enum { | ||
| 560 | EXT3_STATE_JDATA, /* journaled data exists */ | ||
| 561 | EXT3_STATE_NEW, /* inode is newly created */ | ||
| 562 | EXT3_STATE_XATTR, /* has in-inode xattrs */ | ||
| 563 | EXT3_STATE_FLUSH_ON_CLOSE, /* flush dirty pages on close */ | ||
| 564 | }; | ||
| 565 | |||
| 566 | static inline int ext3_test_inode_state(struct inode *inode, int bit) | ||
| 567 | { | ||
| 568 | return test_bit(bit, &EXT3_I(inode)->i_state_flags); | ||
| 569 | } | ||
| 570 | |||
| 571 | static inline void ext3_set_inode_state(struct inode *inode, int bit) | ||
| 572 | { | ||
| 573 | set_bit(bit, &EXT3_I(inode)->i_state_flags); | ||
| 574 | } | ||
| 575 | |||
| 576 | static inline void ext3_clear_inode_state(struct inode *inode, int bit) | ||
| 577 | { | ||
| 578 | clear_bit(bit, &EXT3_I(inode)->i_state_flags); | ||
| 579 | } | ||
| 563 | #else | 580 | #else |
| 564 | /* Assume that user mode programs are passing in an ext3fs superblock, not | 581 | /* Assume that user mode programs are passing in an ext3fs superblock, not |
| 565 | * a kernel struct super_block. This will allow us to call the feature-test | 582 | * a kernel struct super_block. This will allow us to call the feature-test |
| @@ -877,7 +894,7 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode, | |||
| 877 | int create); | 894 | int create); |
| 878 | 895 | ||
| 879 | extern struct inode *ext3_iget(struct super_block *, unsigned long); | 896 | extern struct inode *ext3_iget(struct super_block *, unsigned long); |
| 880 | extern int ext3_write_inode (struct inode *, int); | 897 | extern int ext3_write_inode (struct inode *, struct writeback_control *); |
| 881 | extern int ext3_setattr (struct dentry *, struct iattr *); | 898 | extern int ext3_setattr (struct dentry *, struct iattr *); |
| 882 | extern void ext3_delete_inode (struct inode *); | 899 | extern void ext3_delete_inode (struct inode *); |
| 883 | extern int ext3_sync_inode (handle_t *, struct inode *); | 900 | extern int ext3_sync_inode (handle_t *, struct inode *); |
