Re: [PATCH 1/4] mm: cleancache: s/flush/invalidate/

From: Seth Jennings
Date: Fri Jan 13 2012 - 16:18:18 EST


On 01/13/2012 11:43 AM, Konrad Rzeszutek Wilk wrote:
> On Fri, Jan 13, 2012 at 09:16:33AM -0600, Seth Jennings wrote:
>> Hey Konrad,
>>
>> On 01/12/2012 02:36 PM, Konrad Rzeszutek Wilk wrote:
>>> From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
>>>
>>> Per akpm suggestions alter the use of the term flush to be
>>> invalidate. The next patch will do this across all MM.
>>>
>>> This change is completely cosmetic.
>>>
>>> [v9: akpm@xxxxxxxxxxxxxxxxxxxx: change "flush" to "invalidate", part 3]
>>>
>>> Signed-off-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
>>> Reviewed-by: Konrad Wilk <konrad.wilk@xxxxxxxxxx>
>>> Cc: Kamezawa Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
>>> Cc: Jan Beulich <JBeulich@xxxxxxxxxx>
>>> Cc: Seth Jennings <sjenning@xxxxxxxxxxxxxxxxxx>
>>> Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
>>> Cc: Hugh Dickins <hughd@xxxxxxxxxx>
>>> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
>>> Cc: Nitin Gupta <ngupta@xxxxxxxxxx>
>>> Cc: Matthew Wilcox <matthew@xxxxxx>
>>> Cc: Chris Mason <chris.mason@xxxxxxxxxx>
>>> Cc: Rik Riel <riel@xxxxxxxxxx>
>>> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>>> [v10: Fixed fs: move code out of buffer.c conflict change]
>>> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
>>> ---
>>> Documentation/vm/cleancache.txt | 37 +++++++++++++++++++------------------
>>> fs/block_dev.c | 2 +-
>>> fs/super.c | 2 +-
>>> include/linux/cleancache.h | 23 ++++++++++++++---------
>>> mm/cleancache.c | 19 ++++++++++---------
>>> mm/filemap.c | 2 +-
>>> mm/truncate.c | 10 +++++-----
>>> 7 files changed, 51 insertions(+), 44 deletions(-)
>> snip
>>> diff --git a/fs/block_dev.c b/fs/block_dev.c
>>> index 69a5b6f..d6d5f29 100644
>>> --- a/fs/block_dev.c
>>> +++ b/fs/block_dev.c
>>> @@ -110,7 +110,7 @@ void invalidate_bdev(struct block_device *bdev)
>>> /* 99% of the time, we don't need to flush the cleancache on the bdev.
>>> * But, for the strange corners, lets be cautious
>>> */
>>> - cleancache_flush_inode(mapping);
>>> + cleancache_invalidate_inode(mapping);
>>> }
>>> EXPORT_SYMBOL(invalidate_bdev);
>>
>> This hunk doesn't merge cleanly because there is no existing
>> cleancache code in fs/block_dev.c in v3.2 or any previous version.
>
> Hm, I am at 099469502f62fbe0d7e4f0b83a2f22538367f734 and I see
> that file with "cleancache_flush_inode" ?
>
> This is against v3.3-rc0, not 3.2.

Ah yes. Since no v3.3-rcX release has been tagged yet, I didn't
think to apply it there.

checkpatch clean, applies clean, builds clean

Consider all the patches in this set

Acked-by: Seth Jennings <sjenning@xxxxxxxxxxxxxxxxxx>

--
Seth

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/