Commit d48dfc20 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: fix conflict on page->private usage

This patch fixes confilct on page->private value between f2fs_trace_pid and
atomic page.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 17c19120
...@@ -183,7 +183,7 @@ struct segment_allocation { ...@@ -183,7 +183,7 @@ struct segment_allocation {
* this value is set in page as a private data which indicate that * this value is set in page as a private data which indicate that
* the page is atomically written, and it is in inmem_pages list. * the page is atomically written, and it is in inmem_pages list.
*/ */
#define ATOMIC_WRITTEN_PAGE 0x0000ffff #define ATOMIC_WRITTEN_PAGE ((unsigned long)-1)
#define IS_ATOMIC_WRITTEN_PAGE(page) \ #define IS_ATOMIC_WRITTEN_PAGE(page) \
(page_private(page) == (unsigned long)ATOMIC_WRITTEN_PAGE) (page_private(page) == (unsigned long)ATOMIC_WRITTEN_PAGE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment