aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index f43c479feee9..5185fad48b62 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -346,6 +346,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,
346 struct writeback_control *wbc) 346 struct writeback_control *wbc)
347{ 347{
348 struct address_space *mapping = inode->i_mapping; 348 struct address_space *mapping = inode->i_mapping;
349 long nr_to_write = wbc->nr_to_write;
349 unsigned dirty; 350 unsigned dirty;
350 int ret; 351 int ret;
351 352
@@ -368,6 +369,8 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,
368 */ 369 */
369 if (wbc->sync_mode != WB_SYNC_ALL) { 370 if (wbc->sync_mode != WB_SYNC_ALL) {
370 requeue_io(inode, wb); 371 requeue_io(inode, wb);
372 trace_writeback_single_inode_requeue(inode, wbc,
373 nr_to_write);
371 return 0; 374 return 0;
372 } 375 }
373 376
@@ -467,6 +470,7 @@ writeback_single_inode(struct inode *inode, struct bdi_writeback *wb,
467 } 470 }
468 } 471 }
469 inode_sync_complete(inode); 472 inode_sync_complete(inode);
473 trace_writeback_single_inode(inode, wbc, nr_to_write);
470 return ret; 474 return ret;
471} 475}
472 476