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
4bcb2fc4
Commit
4bcb2fc4
authored
Feb 08, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Feb 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] (4/5) ext2_free_blocks() cleanup
in ext2_free_blocks() inode->i_sb can't be NULL; dead code removed.
parent
a3c6da09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
fs/ext2/balloc.c
fs/ext2/balloc.c
+1
-6
No files found.
fs/ext2/balloc.c
View file @
4bcb2fc4
...
@@ -198,16 +198,11 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
...
@@ -198,16 +198,11 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,
unsigned
long
bit
;
unsigned
long
bit
;
unsigned
long
i
;
unsigned
long
i
;
unsigned
long
overflow
;
unsigned
long
overflow
;
struct
super_block
*
sb
;
struct
super_block
*
sb
=
inode
->
i_sb
;
struct
ext2_group_desc
*
gdp
;
struct
ext2_group_desc
*
gdp
;
struct
ext2_super_block
*
es
;
struct
ext2_super_block
*
es
;
unsigned
freed
=
0
,
group_freed
;
unsigned
freed
=
0
,
group_freed
;
sb
=
inode
->
i_sb
;
if
(
!
sb
)
{
printk
(
"ext2_free_blocks: nonexistent device"
);
return
;
}
lock_super
(
sb
);
lock_super
(
sb
);
es
=
sb
->
u
.
ext2_sb
.
s_es
;
es
=
sb
->
u
.
ext2_sb
.
s_es
;
if
(
block
<
le32_to_cpu
(
es
->
s_first_data_block
)
||
if
(
block
<
le32_to_cpu
(
es
->
s_first_data_block
)
||
...
...
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