[chris@f27h linux]$ git apply -v
~/RESEND-1-2-btrfs-Enhance-btrfs_trim_fs-function-to-handle-error-better.patch
Checking patch fs/btrfs/extent-tree.c...
Hunk #1 succeeded at 10942 (offset -6 lines).
Hunk #2 succeeded at 10962 (offset -6 lines).
Hunk #3 succeeded at 10974 (offset -6 lines).
Hunk #4 succeeded at 10988 (offset -6 lines).
Hunk #5 succeeded at 11025 (offset -6 lines).
Applied patch fs/btrfs/extent-tree.c cleanly.
[chris@f27h linux]$ git apply -v
~/v2.2-2-2-btrfs-Ensure-btrfs_trim_fs-can-trim-the-whole-fs.patch
Checking patch fs/btrfs/extent-tree.c...
Hunk #1 succeeded at 10961 (offset -6 lines).
Checking patch fs/btrfs/ioctl.c...
Hunk #1 succeeded at 364 (offset -1 lines).
Hunk #2 succeeded at 387 (offset -1 lines).
Applied patch fs/btrfs/extent-tree.c cleanly.
Applied patch fs/btrfs/ioctl.c cleanly.
compiles fine, and test appears to trim more than before, and the file
system still works and scrubs with no errors (did scrub with
4.15.14.fc28).
[chris@f27h ~]$ uname -r
4.16.0-rc7 (mainline, unpatched)
[chris@f27h ~]$ sudo btrfs fi us /
Overall:
Device size: 70.00GiB
Device allocated: 46.06GiB
Device unallocated: 23.94GiB
Device missing: 0.00B
Used: 43.90GiB
Free (estimated): 25.86GiB (min: 13.89GiB)
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 109.94MiB (used: 0.00B)
Data,single: Size:44.00GiB, Used:42.08GiB
/dev/nvme0n1p9 44.00GiB
Metadata,single: Size:2.00GiB, Used:1.82GiB
/dev/nvme0n1p9 2.00GiB
System,DUP: Size:32.00MiB, Used:16.00KiB
/dev/nvme0n1p9 64.00MiB
Unallocated:
/dev/nvme0n1p9 23.94GiB
[chris@f27h ~]$ sudo fstrim -v /
[sudo] password for chris:
/: 24 GiB (25701646336 bytes) trimmed
[chris@f27h ~]$
==============
[chris@f27h ~]$ uname -r
4.16.0-rc7+ (mainline, plus patch)
[chris@f27h ~]$ sudo btrfs fi us /
Overall:
Device size: 70.00GiB
Device allocated: 46.06GiB
Device unallocated: 23.94GiB
Device missing: 0.00B
Used: 43.90GiB
Free (estimated): 25.86GiB (min: 13.89GiB)
Data ratio: 1.00
Metadata ratio: 1.00
Global reserve: 110.06MiB (used: 0.00B)
Data,single: Size:44.00GiB, Used:42.08GiB
/dev/nvme0n1p9 44.00GiB
Metadata,single: Size:2.00GiB, Used:1.82GiB
/dev/nvme0n1p9 2.00GiB
System,DUP: Size:32.00MiB, Used:16.00KiB
/dev/nvme0n1p9 64.00MiB
Unallocated:
/dev/nvme0n1p9 23.94GiB
[chris@f27h ~]$ sudo fstrim -v /
[sudo] password for chris:
/: 26.5 GiB (28394635264 bytes) trimmed
[chris@f27h ~]$
---
Chris Murphy
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html