Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65095
b: refs/heads/master
c: 5c26a7b
h: refs/heads/master
i:
  65093: 5f32fc4
  65091: 4225cbe
  65087: 7b347bd
v: v3
  • Loading branch information
Mark Fasheh committed Sep 20, 2007
1 parent d5f35a1 commit 4d7c827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: db56246c6980e376b02d2da568d119da71f82fb9
refs/heads/master: 5c26a7b70f89c36e8d9acc95cb896c3cd205fc8d
16 changes: 3 additions & 13 deletions trunk/fs/ocfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,18 +930,11 @@ static void ocfs2_write_failure(struct inode *inode,
loff_t user_pos, unsigned user_len)
{
int i;
unsigned from, to;
unsigned from = user_pos & (PAGE_CACHE_SIZE - 1),
to = user_pos + user_len;
struct page *tmppage;

ocfs2_zero_new_buffers(wc->w_target_page, user_pos, user_len);

if (wc->w_large_pages) {
from = wc->w_target_from;
to = wc->w_target_to;
} else {
from = 0;
to = PAGE_CACHE_SIZE;
}
ocfs2_zero_new_buffers(wc->w_target_page, from, to);

for(i = 0; i < wc->w_num_pages; i++) {
tmppage = wc->w_pages[i];
Expand Down Expand Up @@ -991,9 +984,6 @@ static int ocfs2_prepare_page_for_write(struct inode *inode, u64 *p_blkno,
map_from = cluster_start;
map_to = cluster_end;
}

wc->w_target_from = map_from;
wc->w_target_to = map_to;
} else {
/*
* If we haven't allocated the new page yet, we
Expand Down

0 comments on commit 4d7c827

Please sign in to comment.