1. 25 5月, 2020 7 次提交
    • Q
      btrfs: backref: introduce the skeleton of btrfs_backref_iter · a37f232b
      Qu Wenruo 提交于
      Due to the complex nature of btrfs extent tree, when we want to iterate
      all backrefs of one extent, this involves quite a lot of work, like
      searching the EXTENT_ITEM/METADATA_ITEM, iteration through inline and keyed
      backrefs.
      
      Normally this would result in a complex code, something like:
      
        btrfs_search_slot()
        /* Ensure we are at EXTENT_ITEM/METADATA_ITEM */
        while (1) {	/* Loop for extent tree items */
      	while (ptr < end) { /* Loop for inlined items */
      		/* Real work here */
      	}
        next:
        	ret = btrfs_next_item()
      	/* Ensure we're still at keyed item for specified bytenr */
        }
      
      The idea of btrfs_backref_iter is to avoid such complex and hard to
      read code structure, but something like the following:
      
        iter = btrfs_backref_iter_alloc();
        ret = btrfs_backref_iter_start(iter, bytenr);
        if (ret < 0)
      	goto out;
        for (; ; ret = btrfs_backref_iter_next(iter)) {
      	/* Real work here */
        }
        out:
        btrfs_backref_iter_free(iter);
      
      This patch is just the skeleton + btrfs_backref_iter_start() code.
      Reviewed-by: NJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Reviewed-by: NJosef Bacik <josef@toxicpanda.com>
      Signed-off-by: NQu Wenruo <wqu@suse.com>
      Reviewed-by: NDavid Sterba <dsterba@suse.com>
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      a37f232b
    • J
      btrfs: add missing annotation for btrfs_tree_lock() · 78d933c7
      Jules Irenge 提交于
      Sparse reports a warning at btrfs_tree_lock()
      
      warning: context imbalance in btrfs_tree_lock() - wrong count at exit
      
      The root cause is the missing annotation at btrfs_tree_lock()
      Add the missing __acquires(&eb->lock) annotation
      Signed-off-by: NJules Irenge <jbi.octave@gmail.com>
      Reviewed-by: NDavid Sterba <dsterba@suse.com>
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      78d933c7
    • J
      btrfs: add missing annotation for btrfs_lock_cluster() · c142c6a4
      Jules Irenge 提交于
      Sparse reports a warning at btrfs_lock_cluster()
      
      warning: context imbalance in btrfs_lock_cluster()
      	- wrong count
      
      The root cause is the missing annotation at btrfs_lock_cluster()
      Add the missing __acquires(&cluster->refill_lock) annotation.
      Signed-off-by: NJules Irenge <jbi.octave@gmail.com>
      Reviewed-by: NDavid Sterba <dsterba@suse.com>
      Signed-off-by: NDavid Sterba <dsterba@suse.com>
      c142c6a4
    • L
      Linux 5.7-rc7 · 9cb1fd0e
      Linus Torvalds 提交于
      9cb1fd0e
    • L
      Merge tag 'efi-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 98790bba
      Linus Torvalds 提交于
      Pull EFI fixes from Thomas Gleixner:
       "A set of EFI fixes:
      
         - Don't return a garbage screen info when EFI framebuffer is not
           available
      
         - Make the early EFI console work properly with wider fonts instead
           of drawing garbage
      
         - Prevent a memory buffer leak in allocate_e820()
      
         - Print the firmware error record properly so it can be decoded by
           users
      
         - Fix a symbol clash in the host tool build which only happens with
           newer compilers.
      
         - Add a missing check for the event log version of TPM which caused
           boot failures on several Dell systems due to an attempt to decode
           SHA-1 format with the crypto agile algorithm"
      
      * tag 'efi-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        tpm: check event log version before reading final events
        efi: Pull up arch-specific prototype efi_systab_show_arch()
        x86/boot: Mark global variables as static
        efi: cper: Add support for printing Firmware Error Record Reference
        efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()
        efi/earlycon: Fix early printk for wider fonts
        efi/libstub: Avoid returning uninitialized data from setup_graphics()
      98790bba
    • L
      Merge tag 'x86-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 667b6249
      Linus Torvalds 提交于
      Pull x86 fixes from Thomas Gleixner:
       "Two fixes for x86:
      
         - Unbreak stack dumps for inactive tasks by interpreting the special
           first frame left by __switch_to_asm() correctly.
      
           The recent change not to skip the first frame so ORC and frame
           unwinder behave in the same way caused all entries to be
           unreliable, i.e. prepended with '?'.
      
         - Use cpumask_available() instead of an implicit NULL check of a
           cpumask_var_t in mmio trace to prevent a Clang build warning"
      
      * tag 'x86-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks
        x86/mmiotrace: Use cpumask_available() for cpumask_var_t variables
      667b6249
    • L
      Merge tag 'sched-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9e61d12b
      Linus Torvalds 提交于
      Pull scheduler fixes from Thomas Gleixner:
       "A set of fixes for the scheduler:
      
         - Fix handling of throttled parents in enqueue_task_fair() completely.
      
           The recent fix overlooked a corner case where the first iteration
           terminates due to an entity already being on the runqueue which
           makes the list management incomplete and later triggers the
           assertion which checks for completeness.
      
         - Fix a similar problem in unthrottle_cfs_rq().
      
         - Show the correct uclamp values in procfs which prints the effective
           value twice instead of requested and effective"
      
      * tag 'sched-urgent-2020-05-24' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/fair: Fix unthrottle_cfs_rq() for leaf_cfs_rq list
        sched/debug: Fix requested task uclamp values shown in procfs
        sched/fair: Fix enqueue_task_fair() warning some more
      9e61d12b
  2. 24 5月, 2020 26 次提交
  3. 23 5月, 2020 7 次提交