mm: do_generic_file_read() never gets a NULL 'filp' argument

The 'filp' argument to do_generic_file_read() is never NULL.

Signed-off-by: Krishna Kumar <[email protected]>
Reviewed-by: KOSAKI Motohiro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Krishna Kumar 2008-10-15 22:01:13 -07:00 • committed by Linus Torvalds
commit 0c6aa2639e

View file

@ -1186,8 +1186,7 @@ out:
ra->prev_pos |= prev_offset;
*ppos = ((loff_t)index << PAGE_CACHE_SHIFT) + offset;
if (filp)
file_accessed(filp);
file_accessed(filp);
}
int file_read_actor(read_descriptor_t *desc, struct page *page,