Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186445
b: refs/heads/master
c: 9cf05b4
h: refs/heads/master
i:
  186443: 7e53f74
v: v3
  • Loading branch information
Joern Engel committed Mar 6, 2010
1 parent 24be86d commit 72e2fe0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a08ab846cefc82a328cbf9abd96c2e58a6c3664
refs/heads/master: 9cf05b416d3324457f1dd8be35f4eaa7a9640bed
7 changes: 4 additions & 3 deletions trunk/fs/logfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/fs/logfs/logfs_abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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);
Expand Down

0 comments on commit 72e2fe0

Please sign in to comment.