Skip to content

Commit

Permalink
ext4: fix build failure without procfs
Browse files Browse the repository at this point in the history
fs/ext4/super.c: In function 'ext4_fill_super':
fs/ext4/super.c:2226: error: 'ext4_ui_proc_fops' undeclared (first use
in this function)
fs/ext4/super.c:2226: error: (Each undeclared identifier is reported
only once
fs/ext4/super.c:2226: error: for each function it appears in.)

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Alexander Beregalov authored and Theodore Ts'o committed Oct 12, 2008
1 parent 5bf5683 commit 3244fcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2231,13 +2231,15 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
goto failed_mount;
}

#ifdef CONFIG_PROC_FS
if (ext4_proc_root)
sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root);

if (sbi->s_proc)
proc_create_data("inode_readahead_blks", 0644, sbi->s_proc,
&ext4_ui_proc_fops,
&sbi->s_inode_readahead_blks);
#endif

bgl_lock_init(&sbi->s_blockgroup_lock);

Expand Down

0 comments on commit 3244fcb

Please sign in to comment.