X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_patchless_compat.h;h=17fbc5cbc469bbdcc42f2455ca363bd3ed91036d;hb=07c6f609d37878ce0d308a129a0f3ae967d6197b;hp=ce53ac1c48c2ad23ca288619b5ed88ff009a5b43;hpb=62ef9c949753efb9535fa5b1eb2eb38ec663917f;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/lustre_patchless_compat.h b/lustre/include/linux/lustre_patchless_compat.h index ce53ac1..17fbc5c 100644 --- a/lustre/include/linux/lustre_patchless_compat.h +++ b/lustre/include/linux/lustre_patchless_compat.h @@ -26,7 +26,7 @@ * 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. */ /* @@ -55,13 +55,13 @@ static inline void ll_remove_from_page_cache(struct page *page) #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 @@ -69,7 +69,7 @@ static inline void ll_remove_from_page_cache(struct page *page) #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 } @@ -87,7 +87,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page) #else clear_page_dirty(page); #endif - ClearPageUptodate(page); ClearPageMappedToDisk(page); ll_remove_from_page_cache(page); page_cache_release(page); /* pagecache ref */