diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2012-08-07 06:42:09 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-09 14:05:47 +0100 |
commit | 99b4d8fe6d12dcb49126df7153961fbc4de05f2a (patch) | |
tree | 6e9f8f96b8264f7d1ce801d32526ec47b99de051 /net/switchdev/switchdev.c | |
parent | 8a0bab2a6dd05ee35777370be892daba01750712 (diff) |
drbd: only start a new epoch, if the current epoch contains writes
Almost all code paths calling start_new_tl_epoch() guarded it with
if (... current_tle_writes > 0 ... ).
Just move that inside start_new_tl_epoch().
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions