diff options
Diffstat (limited to 'fs/ext2/ialloc.c')
| -rw-r--r-- | fs/ext2/ialloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index e52765219e16..2cb545bf0f3c 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | * David S. Miller (davem@caip.rutgers.edu), 1995 | 12 | * David S. Miller (davem@caip.rutgers.edu), 1995 |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | #include <linux/config.h> | ||
| 16 | #include <linux/quotaops.h> | 15 | #include <linux/quotaops.h> |
| 17 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
| 18 | #include <linux/backing-dev.h> | 17 | #include <linux/backing-dev.h> |
| @@ -575,7 +574,6 @@ got: | |||
| 575 | inode->i_mode = mode; | 574 | inode->i_mode = mode; |
| 576 | 575 | ||
| 577 | inode->i_ino = ino; | 576 | inode->i_ino = ino; |
| 578 | inode->i_blksize = PAGE_SIZE; /* This is the optimal IO size (for stat), not the fs block size */ | ||
| 579 | inode->i_blocks = 0; | 577 | inode->i_blocks = 0; |
| 580 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 578 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
| 581 | memset(ei->i_data, 0, sizeof(ei->i_data)); | 579 | memset(ei->i_data, 0, sizeof(ei->i_data)); |
| @@ -649,7 +647,6 @@ unsigned long ext2_count_free_inodes (struct super_block * sb) | |||
| 649 | unsigned long bitmap_count = 0; | 647 | unsigned long bitmap_count = 0; |
| 650 | struct buffer_head *bitmap_bh = NULL; | 648 | struct buffer_head *bitmap_bh = NULL; |
| 651 | 649 | ||
| 652 | lock_super (sb); | ||
| 653 | es = EXT2_SB(sb)->s_es; | 650 | es = EXT2_SB(sb)->s_es; |
| 654 | for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { | 651 | for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { |
| 655 | unsigned x; | 652 | unsigned x; |
| @@ -672,7 +669,6 @@ unsigned long ext2_count_free_inodes (struct super_block * sb) | |||
| 672 | printk("ext2_count_free_inodes: stored = %lu, computed = %lu, %lu\n", | 669 | printk("ext2_count_free_inodes: stored = %lu, computed = %lu, %lu\n", |
| 673 | percpu_counter_read(&EXT2_SB(sb)->s_freeinodes_counter), | 670 | percpu_counter_read(&EXT2_SB(sb)->s_freeinodes_counter), |
| 674 | desc_count, bitmap_count); | 671 | desc_count, bitmap_count); |
| 675 | unlock_super(sb); | ||
| 676 | return desc_count; | 672 | return desc_count; |
| 677 | #else | 673 | #else |
| 678 | for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { | 674 | for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) { |
