projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hugetlb: handle updating of ACCESSED and DIRTY in hugetlb_fault()
[deliverable/linux.git]
/
mm
/
page-writeback.c
diff --git
a/mm/page-writeback.c
b/mm/page-writeback.c
index 94c6d8988ab3239019ecc720b7ac0624e06016df..24de8b65fdbd1f3cd26fafe888277401125c7bc9 100644
(file)
--- a/
mm/page-writeback.c
+++ b/
mm/page-writeback.c
@@
-1088,7
+1088,7
@@
int __set_page_dirty_nobuffers(struct page *page)
if (!mapping)
return 1;
if (!mapping)
return 1;
-
write
_lock_irq(&mapping->tree_lock);
+
spin
_lock_irq(&mapping->tree_lock);
mapping2 = page_mapping(page);
if (mapping2) { /* Race with truncate? */
BUG_ON(mapping2 != mapping);
mapping2 = page_mapping(page);
if (mapping2) { /* Race with truncate? */
BUG_ON(mapping2 != mapping);
@@
-1102,7
+1102,7
@@
int __set_page_dirty_nobuffers(struct page *page)
radix_tree_tag_set(&mapping->page_tree,
page_index(page), PAGECACHE_TAG_DIRTY);
}
radix_tree_tag_set(&mapping->page_tree,
page_index(page), PAGECACHE_TAG_DIRTY);
}
-
write
_unlock_irq(&mapping->tree_lock);
+
spin
_unlock_irq(&mapping->tree_lock);
if (mapping->host) {
/* !PageAnon && !swapper_space */
__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
if (mapping->host) {
/* !PageAnon && !swapper_space */
__mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
@@
-1258,7
+1258,7
@@
int test_clear_page_writeback(struct page *page)
struct backing_dev_info *bdi = mapping->backing_dev_info;
unsigned long flags;
struct backing_dev_info *bdi = mapping->backing_dev_info;
unsigned long flags;
-
write
_lock_irqsave(&mapping->tree_lock, flags);
+
spin
_lock_irqsave(&mapping->tree_lock, flags);
ret = TestClearPageWriteback(page);
if (ret) {
radix_tree_tag_clear(&mapping->page_tree,
ret = TestClearPageWriteback(page);
if (ret) {
radix_tree_tag_clear(&mapping->page_tree,
@@
-1269,7
+1269,7
@@
int test_clear_page_writeback(struct page *page)
__bdi_writeout_inc(bdi);
}
}
__bdi_writeout_inc(bdi);
}
}
-
write
_unlock_irqrestore(&mapping->tree_lock, flags);
+
spin
_unlock_irqrestore(&mapping->tree_lock, flags);
} else {
ret = TestClearPageWriteback(page);
}
} else {
ret = TestClearPageWriteback(page);
}
@@
-1287,7
+1287,7
@@
int test_set_page_writeback(struct page *page)
struct backing_dev_info *bdi = mapping->backing_dev_info;
unsigned long flags;
struct backing_dev_info *bdi = mapping->backing_dev_info;
unsigned long flags;
-
write
_lock_irqsave(&mapping->tree_lock, flags);
+
spin
_lock_irqsave(&mapping->tree_lock, flags);
ret = TestSetPageWriteback(page);
if (!ret) {
radix_tree_tag_set(&mapping->page_tree,
ret = TestSetPageWriteback(page);
if (!ret) {
radix_tree_tag_set(&mapping->page_tree,
@@
-1300,7
+1300,7
@@
int test_set_page_writeback(struct page *page)
radix_tree_tag_clear(&mapping->page_tree,
page_index(page),
PAGECACHE_TAG_DIRTY);
radix_tree_tag_clear(&mapping->page_tree,
page_index(page),
PAGECACHE_TAG_DIRTY);
-
write
_unlock_irqrestore(&mapping->tree_lock, flags);
+
spin
_unlock_irqrestore(&mapping->tree_lock, flags);
} else {
ret = TestSetPageWriteback(page);
}
} else {
ret = TestSetPageWriteback(page);
}
This page took
0.025744 seconds
and
5
git commands to generate.