diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-08-31 23:13:11 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-08-31 23:13:11 -0400 |
commit | b3a3ca8ca0c3c29abc5b2bfe94bb14f3f4590df9 (patch) | |
tree | 1006f780d43ec8ff90ed11b1eb0d5ed961c9f613 /fs/ext4/ext4.h | |
parent | de89de6e0cf4b1eb13f27137cf2aa40d287aabdf (diff) | |
download | linux-b3a3ca8ca0c3c29abc5b2bfe94bb14f3f4590df9.tar.bz2 |
ext4: Add new tracepoint: trace_ext4_da_write_pages()
Add a new tracepoint which shows the pages that will be written using
write_cache_pages() by ext4_da_writepages().
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 41a76e163b99..81014f4ed22d 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -114,6 +114,21 @@ struct ext4_allocation_request { }; /* + * For delayed allocation tracking + */ +struct mpage_da_data { + struct inode *inode; + sector_t b_blocknr; /* start block number of extent */ + size_t b_size; /* size of extent */ + unsigned long b_state; /* state of the extent */ + unsigned long first_page, next_page; /* extent of pages */ + struct writeback_control *wbc; + int io_done; + int pages_written; + int retval; +}; + +/* * Special inodes numbers */ #define EXT4_BAD_INO 1 /* Bad blocks inode */ |