summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-07-12 11:49:50 -0700
committerJens Axboe <axboe@kernel.dk>2017-07-29 09:00:03 -0600
commitc53cd490b1a491ebf1d8e30da97e7231459a4208 (patch)
tree09edea3836ea440490dcc2993c802b65b93c1e6b /include/trace
parent319ba91d352a74acb47678788109a14b9b4dd4c2 (diff)
downloadop-kernel-dev-c53cd490b1a491ebf1d8e30da97e7231459a4208.zip
op-kernel-dev-c53cd490b1a491ebf1d8e30da97e7231459a4208.tar.gz
kernfs: introduce kernfs_node_id
inode number and generation can identify a kernfs node. We are going to export the identification by exportfs operations, so put ino and generation into a separate structure. It's convenient when later patches use the identification. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/writeback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 7bd8783..9b57f01 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -136,7 +136,7 @@ DEFINE_EVENT(writeback_dirty_inode_template, writeback_dirty_inode,
static inline unsigned int __trace_wb_assign_cgroup(struct bdi_writeback *wb)
{
- return wb->memcg_css->cgroup->kn->ino;
+ return wb->memcg_css->cgroup->kn->id.ino;
}
static inline unsigned int __trace_wbc_assign_cgroup(struct writeback_control *wbc)
OpenPOWER on IntegriCloud