some pages owned by UBIFS.
The lead to situations where the CMA memory allocator failed to
allocate memory.
Fix this by using get/put_page when changing PG_private.
Cc:
Cc: zhangjun
Fixes: 4ac1c17b2044 ("UBIFS: Implement ->migratepage()")
Reported-by: zhangjun
Signed-off-by: Richa
allocator failed to
allocate memory.
Fix this by using get/put_page when changing PG_private.
Cc:
Cc: zhangjun
Fixes: 4ac1c17b2044 ("UBIFS: Implement ->migratepage()")
Reported-by: zhangjun
Signed-off-by: Richard Weinberger
---
zhangjun,
Please give this patch a try!
Thanks,
//ric
On 2018/12/14 上午6:57, Dave Chinner wrote:
On Thu, Dec 13, 2018 at 03:23:37PM +0100, Richard Weinberger wrote:
Hello zhangjun,
thanks a lot for bringing this up!
Am Mittwoch, 12. Dezember 2018, 15:13:57 CET schrieb zhangjun:
Because the PagePrivate() in UBIFS is different meanings,
alloc_cma
()
if the flag is set.
Signed-off-by: zhangjun
---
fs/iomap.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/fs/iomap.c b/fs/iomap.c
index 64ce240..352e58a 100644
--- a/fs/iomap.c
+++ b/fs/iomap.c
@@ -544,8 +544,17 @@ iomap_migrate_page(struct address_space *mapping
e_count()
not increase.
Therefore, the expected_count of UBIFS is different from the general
case.
Signed-off-by: zhangjun
---
fs/ubifs/file.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index 1b78f2e..890dfce 100644
--- a/fs
On 2018/12/13 下午10:23, Richard Weinberger wrote:
Hello zhangjun,
thanks a lot for bringing this up!
Am Mittwoch, 12. Dezember 2018, 15:13:57 CET schrieb zhangjun:
Because the PagePrivate() in UBIFS is different meanings,
alloc_cma() will fail when one dirty page cache located in
the type of
e_count()
not increase.
Therefore, the expected_count of UBIFS is different from the general
case.
Signed-off-by: zhangjun
---
fs/ubifs/file.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index 1b78f2e..2136a5c 100644
--- a/fs/ubifs
7 matches
Mail list logo