Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287459
b: refs/heads/master
c: 15eb77a
h: refs/heads/master
i:
  287457: 53ba550
  287455: ba7811c
v: v3
  • Loading branch information
Wu Fengguang committed Feb 1, 2012
1 parent 1009190 commit b39e6be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2673b4cf5d59c3ee5e0c12f6d734d38770324dc4
refs/heads/master: 15eb77a07c714ac80201abd0a9568888bcee6276
16 changes: 8 additions & 8 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ struct wb_writeback_work {
struct completion *done; /* set if the caller waits */
};

/*
* Include the creation of the trace points after defining the
* wb_writeback_work structure so that the definition remains local to this
* file.
*/
#define CREATE_TRACE_POINTS
#include <trace/events/writeback.h>

/*
* We don't actually have pdflush, but this one is exported though /proc...
*/
Expand Down Expand Up @@ -92,6 +84,14 @@ static inline struct inode *wb_inode(struct list_head *head)
return list_entry(head, struct inode, i_wb_list);
}

/*
* Include the creation of the trace points after defining the
* wb_writeback_work structure and inline functions so that the definition
* remains local to this file.
*/
#define CREATE_TRACE_POINTS
#include <trace/events/writeback.h>

/* Wakeup flusher thread or forker thread to fork it. Requires bdi->wb_lock. */
static void bdi_wakeup_flusher(struct backing_dev_info *bdi)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/trace/events/writeback.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ DECLARE_EVENT_CLASS(writeback_single_inode_template,

TP_fast_assign(
strncpy(__entry->name,
dev_name(inode->i_mapping->backing_dev_info->dev), 32);
dev_name(inode_to_bdi(inode)->dev), 32);
__entry->ino = inode->i_ino;
__entry->state = inode->i_state;
__entry->dirtied_when = inode->dirtied_when;
Expand Down

0 comments on commit b39e6be

Please sign in to comment.