Skip to content

Commit

Permalink
block: export bio_associate_*() and wbc_account_io()
Browse files Browse the repository at this point in the history
bio_associate_blkcg(), bio_associate_current() and wbc_account_io()
are used to implement cgroup writeback support for filesystems and
thus need to be exported.  Export them.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Jul 23, 2015
1 parent 5f6c2d2 commit 5aa2a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2009,6 +2009,7 @@ int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state *blkcg_css)
bio->bi_css = blkcg_css;
return 0;
}
EXPORT_SYMBOL_GPL(bio_associate_blkcg);

/**
* bio_associate_current - associate a bio with %current
Expand Down Expand Up @@ -2039,6 +2040,7 @@ int bio_associate_current(struct bio *bio)
bio->bi_css = task_get_css(current, blkio_cgrp_id);
return 0;
}
EXPORT_SYMBOL_GPL(bio_associate_current);

/**
* bio_disassociate_task - undo bio_associate_current()
Expand Down
1 change: 1 addition & 0 deletions fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ void wbc_account_io(struct writeback_control *wbc, struct page *page,
else
wbc->wb_tcand_bytes -= min(bytes, wbc->wb_tcand_bytes);
}
EXPORT_SYMBOL_GPL(wbc_account_io);

/**
* inode_congested - test whether an inode is congested
Expand Down

0 comments on commit 5aa2a96

Please sign in to comment.