Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95277
b: refs/heads/master
c: 6369a4a
h: refs/heads/master
i:
  95275: 4393318
v: v3
  • Loading branch information
Marcin Slusarz authored and Linus Torvalds committed Apr 30, 2008
1 parent e1a0e25 commit c48e4a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 86098fa0115358abf5159093d11ddb306ce4b0da
refs/heads/master: 6369a4abb486692cd0f5fe592b48ec7419b7976c
4 changes: 2 additions & 2 deletions trunk/fs/affs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ affs_extent_file_ofs(struct inode *inode, u32 newsize)
tmp = min(bsize - boff, newsize - size);
BUG_ON(boff + tmp > bsize || tmp > bsize);
memset(AFFS_DATA(bh) + boff, 0, tmp);
AFFS_DATA_HEAD(bh)->size = cpu_to_be32(be32_to_cpu(AFFS_DATA_HEAD(bh)->size) + tmp);
be32_add_cpu(&AFFS_DATA_HEAD(bh)->size, tmp);
affs_fix_checksum(sb, bh);
mark_buffer_dirty_inode(bh, inode);
size += tmp;
Expand Down Expand Up @@ -680,7 +680,7 @@ static int affs_write_end_ofs(struct file *file, struct address_space *mapping,
tmp = min(bsize - boff, to - from);
BUG_ON(boff + tmp > bsize || tmp > bsize);
memcpy(AFFS_DATA(bh) + boff, data + from, tmp);
AFFS_DATA_HEAD(bh)->size = cpu_to_be32(be32_to_cpu(AFFS_DATA_HEAD(bh)->size) + tmp);
be32_add_cpu(&AFFS_DATA_HEAD(bh)->size, tmp);
affs_fix_checksum(sb, bh);
mark_buffer_dirty_inode(bh, inode);
written += tmp;
Expand Down

0 comments on commit c48e4a8

Please sign in to comment.