Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115587
b: refs/heads/master
c: 0b09923
h: refs/heads/master
i:
  115585: e1f62a3
  115583: 8990739
v: v3
  • Loading branch information
Manish Katiyar authored and Theodore Ts'o committed Oct 17, 2008
1 parent 7f4ea6d commit 9cac2b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 5128273a326679970b9196a27ff812670927c1c4
refs/heads/master: 0b09923eabd92f11a8b272dd3fd0347332d0e1e2
7 changes: 6 additions & 1 deletion trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2720,6 +2720,7 @@ ext4_mb_free_committed_blocks(struct super_block *sb)

static int ext4_mb_init_per_dev_proc(struct super_block *sb)
{
#ifdef CONFIG_PROC_FS
mode_t mode = S_IFREG | S_IRUGO | S_IWUSR;
struct ext4_sb_info *sbi = EXT4_SB(sb);
struct proc_dir_entry *proc;
Expand All @@ -2743,10 +2744,14 @@ static int ext4_mb_init_per_dev_proc(struct super_block *sb)
remove_proc_entry(EXT4_MB_MAX_TO_SCAN_NAME, sbi->s_proc);
remove_proc_entry(EXT4_MB_STATS_NAME, sbi->s_proc);
return -ENOMEM;
#else
return 0;
#endif
}

static int ext4_mb_destroy_per_dev_proc(struct super_block *sb)
{
#ifdef CONFIG_PROC_FS
struct ext4_sb_info *sbi = EXT4_SB(sb);

if (sbi->s_proc == NULL)
Expand All @@ -2758,7 +2763,7 @@ static int ext4_mb_destroy_per_dev_proc(struct super_block *sb)
remove_proc_entry(EXT4_MB_MIN_TO_SCAN_NAME, sbi->s_proc);
remove_proc_entry(EXT4_MB_MAX_TO_SCAN_NAME, sbi->s_proc);
remove_proc_entry(EXT4_MB_STATS_NAME, sbi->s_proc);

#endif
return 0;
}

Expand Down

0 comments on commit 9cac2b2

Please sign in to comment.