aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-01-29 16:21:15 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:58 +0200
commitc56b86558a076bf4907d6bd38da2817206ec21d8 (patch)
treeb10bc5979cf9e92d838f13ba651e6b086303650d /fs
parent1f6e47829a747bf8e0bb3e6dd147eb0eb2d8fc51 (diff)
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: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/segment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index 3bbeca13f..0ba281baa 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -182,7 +182,7 @@ struct segment_allocation {
* 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.
*/
-#define ATOMIC_WRITTEN_PAGE 0x0000ffff
+#define ATOMIC_WRITTEN_PAGE ((unsigned long)-1)
#define IS_ATOMIC_WRITTEN_PAGE(page) \
(page_private(page) == (unsigned long)ATOMIC_WRITTEN_PAGE)