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
nexedi
linux
Commits
9cf05b41
Commit
9cf05b41
authored
Mar 06, 2010
by
Joern Engel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LogFS] Remove h_version field
Incompatible change: h_compr is moved up so the padding is all in one chunk.
parent
6a08ab84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
fs/logfs/journal.c
fs/logfs/journal.c
+4
-3
fs/logfs/logfs_abi.h
fs/logfs/logfs_abi.h
+1
-3
No files found.
fs/logfs/journal.c
View file @
9cf05b41
...
...
@@ -419,12 +419,13 @@ static size_t __logfs_write_header(struct logfs_super *super,
{
jh
->
h_len
=
cpu_to_be16
(
len
);
jh
->
h_type
=
cpu_to_be16
(
type
);
jh
->
h_version
=
cpu_to_be16
(
++
super
->
s_last_version
);
jh
->
h_datalen
=
cpu_to_be16
(
datalen
);
jh
->
h_compr
=
compr
;
jh
->
h_pad
[
0
]
=
'H'
;
jh
->
h_pad
[
1
]
=
'A'
;
jh
->
h_pad
[
2
]
=
'T'
;
jh
->
h_pad
[
1
]
=
'E'
;
jh
->
h_pad
[
2
]
=
'A'
;
jh
->
h_pad
[
3
]
=
'D'
;
jh
->
h_pad
[
4
]
=
'R'
;
jh
->
h_crc
=
logfs_crc32
(
jh
,
len
+
sizeof
(
*
jh
),
4
);
return
ALIGN
(
len
,
16
)
+
sizeof
(
*
jh
);
}
...
...
fs/logfs/logfs_abi.h
View file @
9cf05b41
...
...
@@ -422,7 +422,6 @@ SIZE_CHECK(logfs_segment_entry, 8);
* not including header
* @h_datalen: length of uncompressed data
* @h_type: JE type
* @h_version: unnormalized version of journal entry
* @h_compr: compression type
* @h_pad: reserved
*/
...
...
@@ -431,9 +430,8 @@ struct logfs_journal_header {
__be16
h_len
;
__be16
h_datalen
;
__be16
h_type
;
__be16
h_version
;
__u8
h_compr
;
__u8
h_pad
[
3
];
__u8
h_pad
[
5
];
};
SIZE_CHECK
(
logfs_journal_header
,
16
);
...
...
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