Skip to content

Commit

Permalink
writeback: writeback_inodes_sb() should use bdi_start_writeback()
Browse files Browse the repository at this point in the history
Pointless to iterate other devices looking for a super, when
we have a bdi mapping.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Sep 25, 2009
1 parent b3af946 commit 56a131d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ void writeback_inodes_sb(struct super_block *sb)
nr_to_write = nr_dirty + nr_unstable +
(inodes_stat.nr_inodes - inodes_stat.nr_unused);

bdi_writeback_all(sb, nr_to_write);
bdi_start_writeback(sb->s_bdi, nr_to_write);
}
EXPORT_SYMBOL(writeback_inodes_sb);

Expand Down

0 comments on commit 56a131d

Please sign in to comment.