Re: [RFC 0/5] Change page reference hanlding semantic of page cache

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hugh Dickins
Date: Monday, December 20, 2010 - 10:07 pm

On Tue, 21 Dec 2010, Minchan Kim wrote:

Good point from hch, but I feel even more strongly: if you're going to
do this now, please rename remove_from_page_cache (delete_from_page_cache
was what I chose back when I misdid it) - you're changing an EXPORTed
function in a subtle (well, subtlish) confusing way, which could easily
waste people's time down the line, whether in not-yet-in-tree filesystems
or backports of fixes.  I'd much rather you break someone's build,
forcing them to look at what changed, than crash or leak at runtime.

If you do rename, you can keep your patch structure, introducing the
new function as a wrapper to the old at the beginning, then removing
the old function at the end.

(As you know, I do agree that it's right to decrement the reference
count at the point of removing from page cache.)

Hugh
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC 1/5] drop page reference on remove_from_page_cache, Minchan Kim, (Fri Dec 17, 10:13 am)
[RFC 2/5] fuse: Remove unnecessary page release, Minchan Kim, (Fri Dec 17, 10:13 am)
[RFC 3/5] tlbfs: Remove unnecessary page release, Minchan Kim, (Fri Dec 17, 10:13 am)
[RFC 4/5] swap: Remove unnecessary page release, Minchan Kim, (Fri Dec 17, 10:13 am)
[RFC 5/5] truncate: Remove unnecessary page release, Minchan Kim, (Fri Dec 17, 10:13 am)
Re: [RFC 1/5] drop page reference on remove_from_page_cache, KAMEZAWA Hiroyuki, (Sun Dec 19, 6:53 pm)
Re: [RFC 2/5] fuse: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Sun Dec 19, 6:54 pm)
Re: [RFC 3/5] tlbfs: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Sun Dec 19, 6:54 pm)
Re: [RFC 4/5] swap: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Sun Dec 19, 6:55 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Sun Dec 19, 6:55 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KOSAKI Motohiro, (Sun Dec 19, 7:21 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Sun Dec 19, 7:27 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KOSAKI Motohiro, (Sun Dec 19, 7:32 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KOSAKI Motohiro, (Sun Dec 19, 8:03 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Sun Dec 19, 9:35 pm)
Re: [RFC 5/5] truncate: Remove unnecessary page release, KAMEZAWA Hiroyuki, (Mon Dec 20, 1:54 am)
Re: [RFC 0/5] Change page reference hanlding semantic of p ..., Christoph Hellwig, (Mon Dec 20, 3:33 am)
Re: [RFC 0/5] Change page reference hanlding semantic of p ..., Hugh Dickins, (Mon Dec 20, 10:07 pm)