Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210387
b: refs/heads/master
c: 9b4c0ff
h: refs/heads/master
i:
  210385: 6049e84
  210383: 011e156
v: v3
  • Loading branch information
Jan Kara authored and Tao Ma committed Sep 8, 2010
1 parent aff6f0a commit 66a1090
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: b2b6ebf5f740e015b2155343958f067e594323ea
refs/heads/master: 9b4c0ff32ccd87ab52d4c5bd0a0536febce11370
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6672,7 +6672,7 @@ int ocfs2_grab_pages(struct inode *inode, loff_t start, loff_t end,
last_page_bytes = PAGE_ALIGN(end);
index = start >> PAGE_CACHE_SHIFT;
do {
pages[numpages] = grab_cache_page(mapping, index);
pages[numpages] = find_or_create_page(mapping, index, GFP_NOFS);
if (!pages[numpages]) {
ret = -ENOMEM;
mlog_errno(ret);
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ static int ocfs2_write_zero_page(struct inode *inode, u64 abs_from,
BUG_ON(abs_to > (((u64)index + 1) << PAGE_CACHE_SHIFT));
BUG_ON(abs_from & (inode->i_blkbits - 1));

page = grab_cache_page(mapping, index);
page = find_or_create_page(mapping, index, GFP_NOFS);
if (!page) {
ret = -ENOMEM;
mlog_errno(ret);
Expand Down
5 changes: 3 additions & 2 deletions trunk/fs/ocfs2/refcounttree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2960,7 +2960,7 @@ static int ocfs2_duplicate_clusters_by_page(handle_t *handle,
if (map_end & (PAGE_CACHE_SIZE - 1))
to = map_end & (PAGE_CACHE_SIZE - 1);

page = grab_cache_page(mapping, page_index);
page = find_or_create_page(mapping, page_index, GFP_NOFS);

/*
* In case PAGE_CACHE_SIZE <= CLUSTER_SIZE, This page
Expand Down Expand Up @@ -3179,7 +3179,8 @@ static int ocfs2_cow_sync_writeback(struct super_block *sb,
if (map_end > end)
map_end = end;

page = grab_cache_page(context->inode->i_mapping, page_index);
page = find_or_create_page(context->inode->i_mapping,
page_index, GFP_NOFS);
BUG_ON(!page);

wait_on_page_writeback(page);
Expand Down

0 comments on commit 66a1090

Please sign in to comment.