]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix 4.4 btrfs patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2020 19:57:07 +0000 (20:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2020 19:57:07 +0000 (20:57 +0100)
queue-4.4/btrfs-fix-race-between-using-extent-maps-and-merging-them.patch

index 804677192c391ceb9ba08ca01128efdab419b11e..7b9fc53842a2e0f57de7c12f4e14aea9fbaf1fd3 100644 (file)
@@ -120,7 +120,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 +       * clearing the logging flag), so anything > 2 means it's being used by
 +       * other tasks too.
 +       */
-+      if (refcount_read(&em->refs) > 2)
++      if (atomic_read(&em->refs) > 2)
 +              return;
 +
        if (em->start != 0) {