* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
#ifdef HAVE_RW_TREE_LOCK
write_lock_irq(&mapping->tree_lock);
#else
- spin_lock_irq(&mapping->tree_lock);
+ cfs_spin_lock_irq(&mapping->tree_lock);
#endif
radix_tree_delete(&mapping->page_tree, page->index);
page->mapping = NULL;
mapping->nrpages--;
#ifdef HAVE_NR_PAGECACHE
- atomic_add(-1, &nr_pagecache); // XXX pagecache_acct(-1);
+ cfs_atomic_add(-1, &nr_pagecache); // XXX pagecache_acct(-1);
#else
__dec_zone_page_state(page, NR_FILE_PAGES);
#endif
#ifdef HAVE_RW_TREE_LOCK
write_unlock_irq(&mapping->tree_lock);
#else
- spin_unlock_irq(&mapping->tree_lock);
+ cfs_spin_unlock_irq(&mapping->tree_lock);
#endif
}