Skip to contentSkip to conversation

thinko in filemap.c

PATCH New Velizar Bodurski 1 participant 1 message Apr 6, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thinko in filemap.c

There is a small thinko in the way remove_page_from_inode_queue() and __remove_inode_page() are working together. A patch follows which should separate the work for the different functions. Right now remove_page_from_inode_queue() after doing its job is doing page->mapping = NULL;
This function is called by __remove_inode_page with no locks held which also is doing page->mapping = NULL, this is needles. So with this patch i'm removing the second NULLifying of the page's mapping.

Any comments are welcome. There is one question with this patch and that is shouldn't it be the reverse way, I may have gotten it the wrong way :).

This is against 2.4.3

----

filemap.c renamed from filemap.c.orig +0 -1
diff -u mm/filemap.c.orig mm/filemap.c
@@ -108,7 +108,6 @@
 	if (PageDirty(page)) BUG();
 	remove_page_from_inode_queue(page);
 	remove_page_from_hash_queue(page);
-	page->mapping = NULL;
 }
 
 void remove_inode_page(struct page *page)

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/