Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- fs/hugetlbfs/inode.c | 7 ++-----
+ fs/hugetlbfs/inode.c | 8 ++------
include/linux/hugetlb.h | 4 +---
mm/hugetlb.c | 23 +++++++----------------
mm/userfaultfd.c | 3 +--
- 4 files changed, 11 insertions(+), 26 deletions(-)
+ 4 files changed, 11 insertions(+), 27 deletions(-)
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
mutex_lock(&hugetlb_fault_mutex_table[hash]);
/*
-@@ -621,8 +619,7 @@ static long hugetlbfs_fallocate(struct f
+@@ -557,7 +555,6 @@ static long hugetlbfs_fallocate(struct f
+ struct address_space *mapping = inode->i_mapping;
+ struct hstate *h = hstate_inode(inode);
+ struct vm_area_struct pseudo_vma;
+- struct mm_struct *mm = current->mm;
+ loff_t hpage_size = huge_page_size(h);
+ unsigned long hpage_shift = huge_page_shift(h);
+ pgoff_t start, index, end;
+@@ -621,8 +618,7 @@ static long hugetlbfs_fallocate(struct f
addr = index * hpage_size;
/* mutex taken here, fault path and hole punch */
---
- fs/hugetlbfs/inode.c | 7 ++-----
+ fs/hugetlbfs/inode.c | 8 ++------
include/linux/hugetlb.h | 4 +---
mm/hugetlb.c | 19 +++++--------------
- 3 files changed, 8 insertions(+), 22 deletions(-)
+ 3 files changed, 8 insertions(+), 23 deletions(-)
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
mutex_lock(&hugetlb_fault_mutex_table[hash]);
lock_page(page);
-@@ -633,8 +631,7 @@ static long hugetlbfs_fallocate(struct f
+@@ -569,7 +567,6 @@ static long hugetlbfs_fallocate(struct f
+ struct address_space *mapping = inode->i_mapping;
+ struct hstate *h = hstate_inode(inode);
+ struct vm_area_struct pseudo_vma;
+- struct mm_struct *mm = current->mm;
+ loff_t hpage_size = huge_page_size(h);
+ unsigned long hpage_shift = huge_page_shift(h);
+ pgoff_t start, index, end;
+@@ -633,8 +630,7 @@ static long hugetlbfs_fallocate(struct f
addr = index * hpage_size;
/* mutex taken here, fault path and hole punch */
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- fs/hugetlbfs/inode.c | 7 ++-----
+ fs/hugetlbfs/inode.c | 8 ++------
include/linux/hugetlb.h | 4 +---
mm/hugetlb.c | 19 +++++--------------
- 3 files changed, 8 insertions(+), 22 deletions(-)
+ 3 files changed, 8 insertions(+), 23 deletions(-)
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
mutex_lock(&hugetlb_fault_mutex_table[hash]);
/*
-@@ -637,8 +635,7 @@ static long hugetlbfs_fallocate(struct f
+@@ -573,7 +571,6 @@ static long hugetlbfs_fallocate(struct f
+ struct address_space *mapping = inode->i_mapping;
+ struct hstate *h = hstate_inode(inode);
+ struct vm_area_struct pseudo_vma;
+- struct mm_struct *mm = current->mm;
+ loff_t hpage_size = huge_page_size(h);
+ unsigned long hpage_shift = huge_page_shift(h);
+ pgoff_t start, index, end;
+@@ -637,8 +634,7 @@ static long hugetlbfs_fallocate(struct f
addr = index * hpage_size;
/* mutex taken here, fault path and hole punch */