Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for-5.8-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux

Pull btrfs fixes from David Sterba:
"Two refcounting fixes and one prepartory patch for upcoming splice
cleanup:

- fix double put of block group with nodatacow

- fix missing block group put when remounting with discard=async

- explicitly set splice callback (no functional change), to ease
integrating splice cleanup patches"

* tag 'for-5.8-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
btrfs: wire up iter_file_splice_write
btrfs: fix double put of block group with nocow
btrfs: discard: add missing put when grabbing block group from unused list

+3 -8
+1
fs/btrfs/discard.c
··· 619 619 list_for_each_entry_safe(block_group, next, &fs_info->unused_bgs, 620 620 bg_list) { 621 621 list_del_init(&block_group->bg_list); 622 + btrfs_put_block_group(block_group); 622 623 btrfs_discard_queue_work(&fs_info->discard_ctl, block_group); 623 624 } 624 625 spin_unlock(&fs_info->unused_bgs_lock);
+1
fs/btrfs/file.c
··· 3509 3509 .read_iter = generic_file_read_iter, 3510 3510 .splice_read = generic_file_splice_read, 3511 3511 .write_iter = btrfs_file_write_iter, 3512 + .splice_write = iter_file_splice_write, 3512 3513 .mmap = btrfs_file_mmap, 3513 3514 .open = btrfs_file_open, 3514 3515 .release = btrfs_release_file,
+1 -8
fs/btrfs/inode.c
··· 1690 1690 ret = fallback_to_cow(inode, locked_page, cow_start, 1691 1691 found_key.offset - 1, 1692 1692 page_started, nr_written); 1693 - if (ret) { 1694 - if (nocow) 1695 - btrfs_dec_nocow_writers(fs_info, 1696 - disk_bytenr); 1693 + if (ret) 1697 1694 goto error; 1698 - } 1699 1695 cow_start = (u64)-1; 1700 1696 } 1701 1697 ··· 1707 1711 ram_bytes, BTRFS_COMPRESS_NONE, 1708 1712 BTRFS_ORDERED_PREALLOC); 1709 1713 if (IS_ERR(em)) { 1710 - if (nocow) 1711 - btrfs_dec_nocow_writers(fs_info, 1712 - disk_bytenr); 1713 1714 ret = PTR_ERR(em); 1714 1715 goto error; 1715 1716 }