OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
btrfs: scrub: introduce error reporting functionality for scrub_stripe
[tomoyo/tomoyo-test1.git]
/
fs
/
coredump.c
diff --git
a/fs/coredump.c
b/fs/coredump.c
index
a141dca
..
5df1e6e
100644
(file)
--- a/
fs/coredump.c
+++ b/
fs/coredump.c
@@
-1108,14
+1108,14
@@
whole:
* Helper function for iterating across a vma list. It ensures that the caller
* will visit `gate_vma' prior to terminating the search.
*/
* Helper function for iterating across a vma list. It ensures that the caller
* will visit `gate_vma' prior to terminating the search.
*/
-static struct vm_area_struct *coredump_next_vma(struct
ma_state *mas
,
+static struct vm_area_struct *coredump_next_vma(struct
vma_iterator *vmi
,
struct vm_area_struct *vma,
struct vm_area_struct *gate_vma)
{
if (gate_vma && (vma == gate_vma))
return NULL;
struct vm_area_struct *vma,
struct vm_area_struct *gate_vma)
{
if (gate_vma && (vma == gate_vma))
return NULL;
- vma =
mas_next(mas, ULONG_MAX
);
+ vma =
vma_next(vmi
);
if (vma)
return vma;
return gate_vma;
if (vma)
return vma;
return gate_vma;
@@
-1143,7
+1143,7
@@
static bool dump_vma_snapshot(struct coredump_params *cprm)
{
struct vm_area_struct *gate_vma, *vma = NULL;
struct mm_struct *mm = current->mm;
{
struct vm_area_struct *gate_vma, *vma = NULL;
struct mm_struct *mm = current->mm;
-
MA_STATE(mas, &mm->mm_mt, 0
, 0);
+
VMA_ITERATOR(vmi, mm
, 0);
int i = 0;
/*
int i = 0;
/*
@@
-1164,7
+1164,7
@@
static bool dump_vma_snapshot(struct coredump_params *cprm)
return false;
}
return false;
}
- while ((vma = coredump_next_vma(&
mas
, vma, gate_vma)) != NULL) {
+ while ((vma = coredump_next_vma(&
vmi
, vma, gate_vma)) != NULL) {
struct core_vma_metadata *m = cprm->vma_meta + i;
m->start = vma->vm_start;
struct core_vma_metadata *m = cprm->vma_meta + i;
m->start = vma->vm_start;