Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218824
b: refs/heads/master
c: beb37b8
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara committed Oct 5, 2010
1 parent 0e17fa7 commit 74be887
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 80f44b152c889e592616adf0d33b856107f4bace
refs/heads/master: beb37b85b0b727e68e16a39a1e5a2140f87fa201
11 changes: 8 additions & 3 deletions trunk/fs/ext3/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,14 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode)
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;
/* See comment in ext3_iget for explanation */
if (ino >= EXT3_FIRST_INO(sb) + 1 &&
EXT3_INODE_SIZE(sb) > EXT3_GOOD_OLD_INODE_SIZE) {
ei->i_extra_isize =
sizeof(struct ext3_inode) - EXT3_GOOD_OLD_INODE_SIZE;
} else {
ei->i_extra_isize = 0;
}

ret = inode;
dquot_initialize(inode);
Expand Down

0 comments on commit 74be887

Please sign in to comment.