summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/trace.c
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2017-03-22 04:59:30 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-03-24 20:10:49 +0100
commit5f4c3dec225e03273e1f74816e676cccc1a54329 (patch)
tree47a872b5d059006c5001fb896b7e8462d53d2ebb /fs/f2fs/trace.c
parentf2fs: fix recording invalid last_victim (diff)
downloadlinux-5f4c3dec225e03273e1f74816e676cccc1a54329.tar.xz
linux-5f4c3dec225e03273e1f74816e676cccc1a54329.zip
f2fs: use set_page_private marcro in f2fs_trace_pid
Use set_page_private marcro instead of operte page struct directly Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/trace.c b/fs/f2fs/trace.c
index c82ab4048127..bccbbf2616d2 100644
--- a/fs/f2fs/trace.c
+++ b/fs/f2fs/trace.c
@@ -59,7 +59,7 @@ void f2fs_trace_pid(struct page *page)
pid_t pid = task_pid_nr(current);
void *p;
- page->private = pid;
+ set_page_private(page, (unsigned long)pid);
if (radix_tree_preload(GFP_NOFS))
return;