[PATCH] Don't call remove_from_page_cache (5 of 12)
[email protected] (Dave Kleikamp) Thu, 31 Mar 2005 14:50:05 -0600 (CST)
| Newsgroups | gmane.comp.file-systems.jfs.patches |
|---|---|
| Message-ID | <[email protected]> |
# This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2005/02/15 14:02:10-06:00 [email protected] # JFS: Don't call remove_from_page_cache # # This isn't exported in the mainline kernel. I'm not quite sure # whether or not it is the right thing to do here. # # Signed-off-by: Dave Kleikamp <[email protected]> # diff -Nru a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c --- a/fs/jfs/jfs_metapage.c 2005-03-31 14:18:24 -06:00 +++ b/fs/jfs/jfs_metapage.c 2005-03-31 14:18:24 -06:00 @@ -1,5 +1,5 @@ /* - * Copyright (C) International Business Machines Corp., 2000-2003 + * Copyright (C) International Business Machines Corp., 2000-2005 * Portions Copyright (C) Christoph Hellwig, 2001-2002 * * This program is free software; you can redistribute it and/or modify @@ -774,14 +774,16 @@ /* Retest mp->count since we may have released page lock */ if (test_bit(META_discard, &mp->flag) && !mp->count) { - ClearPageDirty(page); + clear_page_dirty(page); ClearPageUptodate(page); +#ifdef _NOT_YET if (page->mapping) { /* Remove from page cache and page cache reference */ remove_from_page_cache(page); page_cache_release(page); metapage_releasepage(page, 0); } +#endif } #else /* Try to keep metapages from using up too much memory */ ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30