diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-05 16:20:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-05 16:20:53 -0500 |
commit | e213e26ab3988c516c06eba4dcd030ac052f6dc9 (patch) | |
tree | 6e26fbdbb842b387697d73daf6e70cf718269a77 /include/linux/ext3_fs.h | |
parent | c812a51d11bbe983f4c24e32b59b265705ddd3c2 (diff) | |
parent | efd8f0e6f6c1faa041f228d7113bd3a9db802d49 (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6: (33 commits)
quota: stop using QUOTA_OK / NO_QUOTA
dquot: cleanup dquot initialize routine
dquot: move dquot initialization responsibility into the filesystem
dquot: cleanup dquot drop routine
dquot: move dquot drop responsibility into the filesystem
dquot: cleanup dquot transfer routine
dquot: move dquot transfer responsibility into the filesystem
dquot: cleanup inode allocation / freeing routines
dquot: cleanup space allocation / freeing routines
ext3: add writepage sanity checks
ext3: Truncate allocated blocks if direct IO write fails to update i_size
quota: Properly invalidate caches even for filesystems with blocksize < pagesize
quota: generalize quota transfer interface
quota: sb_quota state flags cleanup
jbd: Delay discarding buffers in journal_unmap_buffer
ext3: quota_write cross block boundary behaviour
quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota
quota: split out compat_sys_quotactl support from quota.c
quota: split out netlink notification support from quota.c
quota: remove invalid optimization from quota_sync_all
...
Fixed trivial conflicts in fs/namei.c and fs/ufs/inode.c
Diffstat (limited to 'include/linux/ext3_fs.h')
-rw-r--r-- | include/linux/ext3_fs.h | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index deac2566450e..cac84b006667 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); | ||
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); | ||
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); | ||
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 |