diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-01-27 14:42:51 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-09-28 10:26:32 +0200 |
commit | 5e4722645afb27ee749ea65988544450f08f78ba (patch) | |
tree | 971a99c34a30e56a8406f86aa2b9f48a08504082 /drivers/block/drbd/drbd_interval.h | |
parent | 53840641bb1feff8c08acdba9de4c0f8b8674df5 (diff) | |
download | linux-stable-5e4722645afb27ee749ea65988544450f08f78ba.tar.gz linux-stable-5e4722645afb27ee749ea65988544450f08f78ba.tar.bz2 linux-stable-5e4722645afb27ee749ea65988544450f08f78ba.zip |
drbd: _req_conflicts(): Get rid of the epoch_entries tree
Instead of keeping a separate tree for local and remote write requests
for finding requests and for conflict detection, use the same tree for
both purposes. Introduce a flag to allow distinguishing the two
possible types of entries in this tree.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_interval.h')
-rw-r--r-- | drivers/block/drbd/drbd_interval.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_interval.h b/drivers/block/drbd/drbd_interval.h index 9d1e5eb2d7eb..4010ad923948 100644 --- a/drivers/block/drbd/drbd_interval.h +++ b/drivers/block/drbd/drbd_interval.h @@ -9,6 +9,7 @@ struct drbd_interval { sector_t sector; /* start sector of the interval */ unsigned int size; /* size in bytes */ sector_t end; /* highest interval end in subtree */ + int local:1 /* local or remote request? */; int waiting:1; }; |