Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189146
b: refs/heads/master
c: de32982
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Mar 29, 2010
1 parent 1e58951 commit 6c186aa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ad4ba059005f18ec9e274966c16d99fc5ce8b2cd
refs/heads/master: de329820e920cd9cfbc2127cad26a37026260cce
4 changes: 3 additions & 1 deletion trunk/fs/ext3/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,9 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode)
inode->i_generation = sbi->s_next_generation++;
spin_unlock(&sbi->s_next_gen_lock);

ei->i_state = EXT3_STATE_NEW;
ei->i_state_flags = 0;
ext3_set_inode_state(inode, EXT3_STATE_NEW);

ei->i_extra_isize =
(EXT3_INODE_SIZE(inode->i_sb) > EXT3_GOOD_OLD_INODE_SIZE) ?
sizeof(struct ext3_inode) - EXT3_GOOD_OLD_INODE_SIZE : 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ struct inode *ext3_iget(struct super_block *sb, unsigned long ino)
inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime);
inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec = inode->i_mtime.tv_nsec = 0;

ei->i_state = 0;
ei->i_state_flags = 0;
ei->i_dir_start_lookup = 0;
ei->i_dtime = le32_to_cpu(raw_inode->i_dtime);
/* We now have enough fields to check if the inode was active or not.
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/linux/ext3_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,17 +565,17 @@ enum {

static inline int ext3_test_inode_state(struct inode *inode, int bit)
{
return test_bit(bit, &EXT3_I(inode)->i_state);
return test_bit(bit, &EXT3_I(inode)->i_state_flags);
}

static inline void ext3_set_inode_state(struct inode *inode, int bit)
{
set_bit(bit, &EXT3_I(inode)->i_state);
set_bit(bit, &EXT3_I(inode)->i_state_flags);
}

static inline void ext3_clear_inode_state(struct inode *inode, int bit)
{
clear_bit(bit, &EXT3_I(inode)->i_state);
clear_bit(bit, &EXT3_I(inode)->i_state_flags);
}
#else
/* Assume that user mode programs are passing in an ext3fs superblock, not
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/ext3_fs_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct ext3_inode_info {
* near to their parent directory's inode.
*/
__u32 i_block_group;
unsigned long i_state; /* Dynamic state flags for ext3 */
unsigned long i_state_flags; /* Dynamic state flags for ext3 */

/* block reservation info */
struct ext3_block_alloc_info *i_block_alloc_info;
Expand Down

0 comments on commit 6c186aa

Please sign in to comment.