Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47289
b: refs/heads/master
c: 6649a38
h: refs/heads/master
i:
  47287: 32710cc
v: v3
  • Loading branch information
Ken Chen authored and Linus Torvalds committed Feb 9, 2007
1 parent fc7c939 commit ac4400c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: f336953bfdee8d5e7f69cb8e080704546541f04b
refs/heads/master: 6649a3863232eb2e2f15ea6c622bd8ceacf96d76
5 changes: 4 additions & 1 deletion trunk/fs/hugetlbfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,13 @@ static int hugetlbfs_symlink(struct inode *dir,
}

/*
* For direct-IO reads into hugetlb pages
* mark the head page dirty
*/
static int hugetlbfs_set_page_dirty(struct page *page)
{
struct page *head = (struct page *)page_private(page);

SetPageDirty(head);
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ void __unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
continue;

page = pte_page(pte);
if (pte_dirty(pte))
set_page_dirty(page);
list_add(&page->lru, &page_list);
}
spin_unlock(&mm->page_table_lock);
Expand Down

0 comments on commit ac4400c

Please sign in to comment.