Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47865
b: refs/heads/master
c: e7ff6ae
h: refs/heads/master
i:
  47863: 7fd1dbf
v: v3
  • Loading branch information
David Chinner authored and Tim Shimmin committed Feb 10, 2007
1 parent f859a37 commit 0ea5de8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 6be145bfb1ce93b2dbb854fee66fbb8d04916339
refs/heads/master: e7ff6aed8761b2c86cd9ab7083e512de2b8cfa48
10 changes: 3 additions & 7 deletions trunk/fs/xfs/linux-2.6/xfs_lrw.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ xfs_iozero(
unsigned bytes;
struct page *page;
struct address_space *mapping;
char *kaddr;
int status;

mapping = ip->i_mapping;
Expand All @@ -155,15 +154,13 @@ xfs_iozero(
if (!page)
break;

kaddr = kmap(page);
status = mapping->a_ops->prepare_write(NULL, page, offset,
offset + bytes);
if (status) {
if (status)
goto unlock;
}

memset((void *) (kaddr + offset), 0, bytes);
flush_dcache_page(page);
memclear_highpage_flush(page, offset, bytes);

status = mapping->a_ops->commit_write(NULL, page, offset,
offset + bytes);
if (!status) {
Expand All @@ -172,7 +169,6 @@ xfs_iozero(
}

unlock:
kunmap(page);
unlock_page(page);
page_cache_release(page);
if (status)
Expand Down

0 comments on commit 0ea5de8

Please sign in to comment.