Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b0973709
Commit
b0973709
authored
Jan 19, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ext2: fix build when EXT2_DEBUG is set
Fix warnings and build errors under EXT2_DEBUG.
parent
79dfabdf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
fs/ext2/balloc.c
fs/ext2/balloc.c
+4
-2
fs/ext2/ialloc.c
fs/ext2/ialloc.c
+2
-3
No files found.
fs/ext2/balloc.c
View file @
b0973709
...
...
@@ -527,6 +527,7 @@ unsigned long ext2_count_free_blocks (struct super_block * sb)
int
i
;
#ifdef EXT2FS_DEBUG
unsigned
long
bitmap_count
,
x
;
struct
ext2_super_block
*
es
;
lock_super
(
sb
);
es
=
EXT2_SB
(
sb
)
->
s_es
;
...
...
@@ -550,7 +551,8 @@ unsigned long ext2_count_free_blocks (struct super_block * sb)
brelse
(
bitmap_bh
);
}
printk
(
"ext2_count_free_blocks: stored = %lu, computed = %lu, %lu
\n
"
,
le32_to_cpu
(
es
->
s_free_blocks_count
),
desc_count
,
bitmap_count
);
(
long
)
le32_to_cpu
(
es
->
s_free_blocks_count
),
desc_count
,
bitmap_count
);
unlock_super
(
sb
);
return
bitmap_count
;
#else
...
...
fs/ext2/ialloc.c
View file @
b0973709
...
...
@@ -638,10 +638,9 @@ unsigned long ext2_count_free_inodes (struct super_block * sb)
int
i
;
#ifdef EXT2FS_DEBUG
struct
ext2_super_block
*
es
;
struct
ext2_super_block
*
es
;
unsigned
long
bitmap_count
=
0
;
struct
buffer_head
*
bitmap_bh
=
NULL
;
int
i
;
lock_super
(
sb
);
es
=
EXT2_SB
(
sb
)
->
s_es
;
...
...
@@ -658,7 +657,7 @@ unsigned long ext2_count_free_inodes (struct super_block * sb)
continue
;
x
=
ext2_count_free
(
bitmap_bh
,
EXT2_INODES_PER_GROUP
(
sb
)
/
8
);
printk
(
"group %d: stored = %d, counted = %l
u
\n
"
,
printk
(
"group %d: stored = %d, counted = %
u
\n
"
,
i
,
le16_to_cpu
(
desc
->
bg_free_inodes_count
),
x
);
bitmap_count
+=
x
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment