]> Git Repo - linux.git/commitdiff
Merge tag 'for-5.9-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
authorLinus Torvalds <[email protected]>
Wed, 2 Sep 2020 01:36:45 +0000 (18:36 -0700)
committerLinus Torvalds <[email protected]>
Wed, 2 Sep 2020 01:36:45 +0000 (18:36 -0700)
Pull btrfs fixes from David Sterba:
 "Two small fixes and a bunch of lockdep fixes for warnings that show up
  with an upcoming tree locking update but are valid with current locks
  as well"

* tag 'for-5.9-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
  btrfs: tree-checker: fix the error message for transid error
  btrfs: set the lockdep class for log tree extent buffers
  btrfs: set the correct lockdep class for new nodes
  btrfs: allocate scrub workqueues outside of locks
  btrfs: fix potential deadlock in the search ioctl
  btrfs: drop path before adding new uuid tree entry
  btrfs: block-group: fix free-space bitmap threshold

1  2 
fs/btrfs/extent_io.c

diff --combined fs/btrfs/extent_io.c
index 6def411b2ebad7f506cff6b91e2dc9d4c2a0eacf,c15ab6c1897fa53846bc2f77288ec6af2340943b..a940edb1e64f2e0f895af5a3defaafcfc47b90e3
@@@ -4541,8 -4541,6 +4541,8 @@@ next
  
                        /* once for us */
                        free_extent_map(em);
 +
 +                      cond_resched(); /* Allow large-extent preemption. */
                }
        }
        return try_release_extent_state(tree, page, mask);
@@@ -5655,9 -5653,9 +5655,9 @@@ void read_extent_buffer(const struct ex
        }
  }
  
- int read_extent_buffer_to_user(const struct extent_buffer *eb,
-                              void __user *dstv,
-                              unsigned long start, unsigned long len)
+ int read_extent_buffer_to_user_nofault(const struct extent_buffer *eb,
+                                      void __user *dstv,
+                                      unsigned long start, unsigned long len)
  {
        size_t cur;
        size_t offset;
  
                cur = min(len, (PAGE_SIZE - offset));
                kaddr = page_address(page);
-               if (copy_to_user(dst, kaddr + offset, cur)) {
+               if (copy_to_user_nofault(dst, kaddr + offset, cur)) {
                        ret = -EFAULT;
                        break;
                }
This page took 0.073781 seconds and 4 git commands to generate.