make get_file() return its argument
simplifies a bunch of callers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -195,10 +195,9 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
|
||||
*/
|
||||
if (mapping_cap_account_dirty(mapping)) {
|
||||
unsigned long addr;
|
||||
struct file *file = vma->vm_file;
|
||||
struct file *file = get_file(vma->vm_file);
|
||||
|
||||
flags &= MAP_NONBLOCK;
|
||||
get_file(file);
|
||||
addr = mmap_region(file, start, size,
|
||||
flags, vma->vm_flags, pgoff);
|
||||
fput(file);
|
||||
|
Reference in New Issue
Block a user