Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26409
b: refs/heads/master
c: 4c28f81
h: refs/heads/master
i:
  26407: a2d5ae5
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed May 2, 2006
1 parent 2b29baf commit d6c6e33
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4b741e380cb56045ccea36f2dbc10e42af21f24
refs/heads/master: 4c28f81193b6778f7b49090930d88e6d12bcb928
11 changes: 11 additions & 0 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,17 @@ int migrate_pages(struct list_head *from, struct list_head *to,
goto unlock_both;
}

/* Make sure the dirty bit is up to date */
if (try_to_unmap(page, 1) == SWAP_FAIL) {
rc = -EPERM;
goto unlock_both;
}

if (page_mapcount(page)) {
rc = -EAGAIN;
goto unlock_both;
}

/*
* Default handling if a filesystem does not provide
* a migration function. We can only migrate clean
Expand Down

0 comments on commit d6c6e33

Please sign in to comment.