Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58542
b: refs/heads/master
c: 0507ecf
h: refs/heads/master
v: v3
  • Loading branch information
Nate Diller authored and Steven Whitehouse committed Jul 9, 2007
1 parent 3aaa3d6 commit 195b731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 6c53267f05dc6689ff662efeec426d25d2c0ab84
refs/heads/master: 0507ecf50f22e433592f5ec3a36dc831aaec2e02
6 changes: 1 addition & 5 deletions trunk/fs/gfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,6 @@ static int gfs2_block_truncate_page(struct address_space *mapping)
unsigned blocksize, iblock, length, pos;
struct buffer_head *bh;
struct page *page;
void *kaddr;
int err;

page = grab_cache_page(mapping, index);
Expand Down Expand Up @@ -933,10 +932,7 @@ static int gfs2_block_truncate_page(struct address_space *mapping)
if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || gfs2_is_jdata(ip))
gfs2_trans_add_bh(ip->i_gl, bh, 0);

kaddr = kmap_atomic(page, KM_USER0);
memset(kaddr + offset, 0, length);
flush_dcache_page(page);
kunmap_atomic(kaddr, KM_USER0);
zero_user_page(page, offset, length, KM_USER0);

unlock:
unlock_page(page);
Expand Down

0 comments on commit 195b731

Please sign in to comment.