Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e28b467d204c4ce3f04995d517660b603ae96a22
commit e28b467d204c4ce3f04995d517660b603ae96a22 Author: crazy <[email protected]> Date: Sat Jul 23 00:28:49 2016 +0200 kernel-4.6.4-1-x86_64 * added patch to fix btrfs crash issue * patch works with 4.6.x and 4.7-rcX * 4.8 should have this and some other patches merged. * see: https://marc.info/?t=146788715300001&r=1&w=2 * also there was some discuss outsite the ML about.. * ( feel free to ask me ) diff --git a/source/base/kernel/FrugalBuild b/source/base/kernel/FrugalBuild index 4da3bf0..09a9a2a 100644 --- a/source/base/kernel/FrugalBuild +++ b/source/base/kernel/FrugalBuild @@ -19,7 +19,7 @@ options+=('nodocs' 'genscriptlet') _F_archive_grepv="rc" up2date="Flasttar $url" -_F_kernel_patches=('fix-i915.patch'\ +_F_kernel_patches=('fix-i915.patch' 'btrfs-crash-fix.patch' \ 'http://algo.ing.unimo.it/people/paolo/disk_sched/patches/4.5.0-v7r11/0001-block-cgroups-kconfig-build-bits-for-BFQ-v7r11-4.5.0.patch' \ 'http://algo.ing.unimo.it/people/paolo/disk_sched/patches/4.5.0-v7r11/0002-block-introduce-the-BFQ-v7r11-I-O-sched-for-4.5.0.patch' \ 'http://algo.ing.unimo.it/people/paolo/disk_sched/patches/4.5.0-v7r11/0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r11-for.patch' ) diff --git a/source/base/kernel/btrfs-crash-fix.patch b/source/base/kernel/btrfs-crash-fix.patch new file mode 100644 index 0000000..8df982e --- /dev/null +++ b/source/base/kernel/btrfs-crash-fix.patch @@ -0,0 +1,24 @@ +diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c +index fac9b839..5842423 100644 +--- a/fs/btrfs/file.c ++++ b/fs/btrfs/file.c +@@ -1629,13 +1629,11 @@ again: + * managed to copy. + */ + if (num_sectors > dirty_sectors) { +- /* +- * we round down because we don't want to count +- * any partial blocks actually sent through the +- * IO machines +- */ +- release_bytes = round_down(release_bytes - copied, +- root->sectorsize); ++ ++ /* release everything except the sectors we dirtied */ ++ release_bytes -= dirty_sectors << ++ root->fs_info->sb->s_blocksize_bits; ++ + if (copied > 0) { + spin_lock(&BTRFS_I(inode)->lock); + BTRFS_I(inode)->outstanding_extents++; + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
