Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273171
b: refs/heads/master
c: 02dc62f
h: refs/heads/master
i:
  273169: 5a069f3
  273167: c6ae42c
v: v3
  • Loading branch information
Yongqiang Yang authored and Theodore Ts'o committed Oct 29, 2011
1 parent 43cef4b commit df17e63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 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: 81fdbb4a8d34242f0ed048395c4ddc910f1dffbe
refs/heads/master: 02dc62fba89eaee0157752c5f1ba811ef3156e00
24 changes: 8 additions & 16 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ static inline int ext4_ext_space_block(struct inode *inode, int check)

size = (inode->i_sb->s_blocksize - sizeof(struct ext4_extent_header))
/ sizeof(struct ext4_extent);
if (!check) {
#ifdef AGGRESSIVE_TEST
if (size > 6)
size = 6;
if (!check && size > 6)
size = 6;
#endif
}
return size;
}

Expand All @@ -196,12 +194,10 @@ static inline int ext4_ext_space_block_idx(struct inode *inode, int check)

size = (inode->i_sb->s_blocksize - sizeof(struct ext4_extent_header))
/ sizeof(struct ext4_extent_idx);
if (!check) {
#ifdef AGGRESSIVE_TEST
if (size > 5)
size = 5;
if (!check && size > 5)
size = 5;
#endif
}
return size;
}

Expand All @@ -212,12 +208,10 @@ static inline int ext4_ext_space_root(struct inode *inode, int check)
size = sizeof(EXT4_I(inode)->i_data);
size -= sizeof(struct ext4_extent_header);
size /= sizeof(struct ext4_extent);
if (!check) {
#ifdef AGGRESSIVE_TEST
if (size > 3)
size = 3;
if (!check && size > 3)
size = 3;
#endif
}
return size;
}

Expand All @@ -228,12 +222,10 @@ static inline int ext4_ext_space_root_idx(struct inode *inode, int check)
size = sizeof(EXT4_I(inode)->i_data);
size -= sizeof(struct ext4_extent_header);
size /= sizeof(struct ext4_extent_idx);
if (!check) {
#ifdef AGGRESSIVE_TEST
if (size > 4)
size = 4;
if (!check && size > 4)
size = 4;
#endif
}
return size;
}

Expand Down

0 comments on commit df17e63

Please sign in to comment.