It is not really correct to use the generic "cfs_" prefixed
locking functions on the Linux kernel's data structures. Revert
back to using the Linux locking function.
Change-Id: I64619c4b4f4963634b3d1e43c1b1519598e65e8d
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/4176
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Peng Tao <bergwolf@gmail.com>
#ifdef HAVE_RW_TREE_LOCK
write_lock_irq(&mapping->tree_lock);
#else
- cfs_spin_lock_irq(&mapping->tree_lock);
+ spin_lock_irq(&mapping->tree_lock);
#endif
radix_tree_delete(&mapping->page_tree, page->index);
page->mapping = NULL;
#ifdef HAVE_RW_TREE_LOCK
write_unlock_irq(&mapping->tree_lock);
#else
- cfs_spin_unlock_irq(&mapping->tree_lock);
+ spin_unlock_irq(&mapping->tree_lock);
#endif
}
#else /* HAVE_REMOVE_FROM_PAGE_CACHE */