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
098a1981
Commit
098a1981
authored
May 30, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[JFFS2] Preallocate node refs for cleanmarker in summary scan
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
13ba42df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
fs/jffs2/summary.c
fs/jffs2/summary.c
+8
-5
No files found.
fs/jffs2/summary.c
View file @
098a1981
...
...
@@ -564,7 +564,6 @@ int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb
struct
jffs2_unknown_node
crcnode
;
int
ret
,
ofs
;
uint32_t
crc
;
int
err
;
ofs
=
c
->
sector_size
-
sumsize
;
...
...
@@ -606,16 +605,20 @@ int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb
dbg_summary
(
"Summary : CLEANMARKER node
\n
"
);
ret
=
jffs2_prealloc_raw_node_refs
(
c
,
jeb
,
1
);
if
(
ret
)
return
ret
;
if
(
je32_to_cpu
(
summary
->
cln_mkr
)
!=
c
->
cleanmarker_size
)
{
dbg_summary
(
"CLEANMARKER node has totlen 0x%x != normal 0x%x
\n
"
,
je32_to_cpu
(
summary
->
cln_mkr
),
c
->
cleanmarker_size
);
if
((
err
=
jffs2_scan_dirty_space
(
c
,
jeb
,
PAD
(
je32_to_cpu
(
summary
->
cln_mkr
)))))
return
err
;
if
((
ret
=
jffs2_scan_dirty_space
(
c
,
jeb
,
PAD
(
je32_to_cpu
(
summary
->
cln_mkr
)))))
return
ret
;
}
else
if
(
jeb
->
first_node
)
{
dbg_summary
(
"CLEANMARKER node not first node in block "
"(0x%08x)
\n
"
,
jeb
->
offset
);
if
((
err
=
jffs2_scan_dirty_space
(
c
,
jeb
,
PAD
(
je32_to_cpu
(
summary
->
cln_mkr
)))))
return
err
;
if
((
ret
=
jffs2_scan_dirty_space
(
c
,
jeb
,
PAD
(
je32_to_cpu
(
summary
->
cln_mkr
)))))
return
ret
;
}
else
{
jffs2_link_node_ref
(
c
,
jeb
,
jeb
->
offset
|
REF_NORMAL
,
je32_to_cpu
(
summary
->
cln_mkr
),
NULL
);
...
...
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