diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-02-02 17:10:52 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 20:23:06 +0100 |
commit | 2d0f25cbc0d948e01573cc8ff5967e81bd98a4a1 (patch) | |
tree | 4a2760a3d16ba7fb64c5efdc7417004b0920c2a6 /drivers/md/dm-writecache.c | |
parent | dm: add missing empty lines (diff) | |
download | linux-2d0f25cbc0d948e01573cc8ff5967e81bd98a4a1.tar.xz linux-2d0f25cbc0d948e01573cc8ff5967e81bd98a4a1.zip |
dm: remove unnecessary braces from single statement blocks
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-writecache.c')
-rw-r--r-- | drivers/md/dm-writecache.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index f4288d70276e..2dfa612fa1ef 100644 --- a/drivers/md/dm-writecache.c +++ b/drivers/md/dm-writecache.c @@ -1984,9 +1984,8 @@ restart: goto restart; } - if (wc->overwrote_committed) { + if (wc->overwrote_committed) writecache_wait_for_ios(wc, WRITE); - } n_walked = 0; INIT_LIST_HEAD(&skipped); @@ -2015,9 +2014,9 @@ restart: } else e = container_of(wc->lru.prev, struct wc_entry, lru); BUG_ON(e->write_in_progress); - if (unlikely(!writecache_entry_is_committed(wc, e))) { + if (unlikely(!writecache_entry_is_committed(wc, e))) writecache_flush(wc); - } + node = rb_prev(&e->rb_node); if (node) { f = container_of(node, struct wc_entry, rb_node); |