Commit 045417f7 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner

drbd: Rename drbd_{ ee -> peer_req }_has_active_page

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent a990be46
......@@ -1594,7 +1594,7 @@ static inline int drbd_bio_has_active_page(struct bio *bio)
return 0;
}
static inline int drbd_ee_has_active_page(struct drbd_peer_request *peer_req)
static inline int drbd_peer_req_has_active_page(struct drbd_peer_request *peer_req)
{
struct page *page = peer_req->pages;
page_chain_for_each(page) {
......
......@@ -208,7 +208,7 @@ static void reclaim_finished_net_peer_reqs(struct drbd_conf *mdev,
list_for_each_safe(le, tle, &mdev->net_ee) {
peer_req = list_entry(le, struct drbd_peer_request, w.list);
if (drbd_ee_has_active_page(peer_req))
if (drbd_peer_req_has_active_page(peer_req))
break;
list_move(le, to_be_freed);
}
......
......@@ -890,7 +890,7 @@ int drbd_resync_finished(struct drbd_conf *mdev)
/* helper */
static void move_to_net_ee_or_free(struct drbd_conf *mdev, struct drbd_peer_request *peer_req)
{
if (drbd_ee_has_active_page(peer_req)) {
if (drbd_peer_req_has_active_page(peer_req)) {
/* This might happen if sendpage() has not finished */
int i = (peer_req->i.size + PAGE_SIZE -1) >> PAGE_SHIFT;
atomic_add(i, &mdev->pp_in_use_by_net);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment