Messages in this thread |  | | | Date | Thu, 15 Oct 2009 23:08:19 +0100 (BST) | | From | Hugh Dickins <> | | Subject | Re: [PATCH 5/9] swap_info: SWAP_HAS_CACHE cleanups |
| |
On Thu, 15 Oct 2009, KAMEZAWA Hiroyuki wrote: > On Thu, 15 Oct 2009 01:52:27 +0100 (BST) > Hugh Dickins <hugh.dickins@tiscali.co.uk> wrote: > > > Though swap_count() is useful, I'm finding that swap_has_cache() and > > encode_swapmap() obscure what happens in the swap_map entry, just at > > those points where I need to understand it. Remove them, and pass > > more usable "usage" values to scan_swap_map(), swap_entry_free() and > > __swap_duplicate(), instead of the SWAP_MAP and SWAP_CACHE enum. > > > > Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> > > I have no objectios to above.
Phew! Thanks. I particularly had this one in mind when I Cc'ed you on them all, because we do have a clash of styles or habits there.
My view is, the next time you or someone else is at work in there, okay to reintroduce such things if they make it easier for you to work on the code; but for me they made it harder.
> I'll test, later. maybe no troubles.
Thanks, yes, testing is the most important.
Hugh
|  |