JFS: Remove bogus WARN_ON statement and some dead code
authorDave Kleikamp <shaggy@austin.ibm.com>
Thu, 14 Jul 2005 20:15:39 +0000 (15:15 -0500)
committerDave Kleikamp <shaggy@austin.ibm.com>
Thu, 14 Jul 2005 20:15:39 +0000 (15:15 -0500)
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
fs/jfs/jfs_metapage.c

index 6c5485d16c3916d6fa764e814345c9e21f4fe0a3..8cb803b54bc12080b6f5dba1f57b953707c77901 100644 (file)
@@ -561,7 +561,6 @@ static int metapage_releasepage(struct page *page, int gfp_mask)
                        dump_mem("page", page, sizeof(struct page));
                        dump_stack();
                }
-               WARN_ON(mp->lsn);
                if (mp->lsn)
                        remove_from_logsync(mp);
                remove_metapage(page, mp);
@@ -783,14 +782,6 @@ void release_metapage(struct metapage * mp)
        if (test_bit(META_discard, &mp->flag) && !mp->count) {
                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 */