Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291821
b: refs/heads/master
c: a1c7c13
h: refs/heads/master
i:
  291819: 5e99824
v: v3
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent bc3e5c9 commit db989bb
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: 53b55e55893fbce8d78caeb22e17a28d909a2132
refs/heads/master: a1c7c13783c9d2d1d67f53c49dc4eaf34811a290
4 changes: 2 additions & 2 deletions trunk/fs/ubifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,10 @@ static int ubifs_writepage(struct page *page, struct writeback_control *wbc)
* the page size, the remaining memory is zeroed when mapped, and
* writes to that region are not written out to the file."
*/
kaddr = kmap_atomic(page, KM_USER0);
kaddr = kmap_atomic(page);
memset(kaddr + len, 0, PAGE_CACHE_SIZE - len);
flush_dcache_page(page);
kunmap_atomic(kaddr, KM_USER0);
kunmap_atomic(kaddr);

if (i_size > synced_i_size) {
err = inode->i_sb->s_op->write_inode(inode, NULL);
Expand Down

0 comments on commit db989bb

Please sign in to comment.