Re: [PATCH] mmap_region: cleanup, remove unneeded file != NULL check

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Monday, February 11, 2008 - 3:34 am

Sorry for delay,

On 02/06, Hugh Dickins wrote:

Ah. Shame on me. Of course, I noticed these 2 correct_wcount's, but
didn't realize we can safely use "inode" after fput(). Not only the
caller should have a reference, vma_merge() requires that vm_file == file,
so fput(file) can't destroy the last reference.


Thanks Hugh, I'll redo this cleanup.

Oleg.

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

Messages in current thread:
Re: [PATCH] mmap_region: cleanup, remove unneeded file != ..., Oleg Nesterov, (Mon Feb 11, 3:34 am)