Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180360
b: refs/heads/master
c: 0a1ea43
h: refs/heads/master
v: v3
  • Loading branch information
Tao Ma authored and Joel Becker committed Feb 3, 2010
1 parent fd8f3b4 commit 579a7ca
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d622b89a2f58613a9c1407b22b02aecdd2187a7c
refs/heads/master: 0a1ea437d87af830786605813972e8e277992917
8 changes: 6 additions & 2 deletions trunk/fs/ocfs2/refcounttree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2957,8 +2957,12 @@ static int ocfs2_duplicate_clusters_by_page(handle_t *handle,

page = grab_cache_page(mapping, page_index);

/* This page can't be dirtied before we CoW it out. */
BUG_ON(PageDirty(page));
/*
* In case PAGE_CACHE_SIZE <= CLUSTER_SIZE, This page
* can't be dirtied before we CoW it out.
*/
if (PAGE_CACHE_SIZE <= OCFS2_SB(sb)->s_clustersize)
BUG_ON(PageDirty(page));

if (!PageUptodate(page)) {
ret = block_read_full_page(page, ocfs2_get_block);
Expand Down

0 comments on commit 579a7ca

Please sign in to comment.