Skip to contentSkip to conversation

mm-do_mmap_pgoff-cleanup-the-usage-of-file_inode.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 12, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-do_mmap_pgoff-cleanup-the-usage-of-file_inode.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:42:21 -0700

The patch titled
Subject: mm: do_mmap_pgoff: cleanup the usage of file_inode()
has been removed from the -mm tree. Its filename was
mm-do_mmap_pgoff-cleanup-the-usage-of-file_inode.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Oleg Nesterov <[email protected]>
Subject: mm: do_mmap_pgoff: cleanup the usage of file_inode()

Simple cleanup. Move "struct inode *inode" variable into "if (file)" block to simplify the code and avoid the unnecessary check.

Cc Hugh Dickins <[email protected]>
Cc Al Viro <[email protected]>
Cc Colin Cross <[email protected]>
Cc David Rientjes <[email protected]>
Cc KOSAKI Motohiro <[email protected]>

---

 mm/mmap.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
mm/mmap.c renamed from mm/mmap.c~mm-do_mmap_pgoff-cleanup-the-usage-of-file_inode +0 -2
diff -puN mm/mmap.c~mm-do_mmap_pgoff-cleanup-the-usage-of-file_inode mm/mmap.c
@@ -1202,7 +1202,6 @@ unsigned long do_mmap_pgoff(struct file
 			unsigned long *populate)
 {
 	struct mm_struct * mm = current->mm;
-	struct inode *inode;
 	vm_flags_t vm_flags;
 
 	*populate = 0;
@@ -1265,9 +1264,9 @@ unsigned long do_mmap_pgoff(struct file
 			return -EAGAIN;
 	}
 
-	inode = file ? file_inode(file) : NULL;