Skip to contentSkip to conversation

btrfs: add mount option to set commit interval

PATCH Mike Audia 2 participants 2 messages Aug 2, 2013 Btrfs file system

lore
Share & tools
lore

Mike Audia

author
#0 lore raw
Quoted 10 lines

----- Original Message -----
From: Mike Audia
Sent: 08/02/13 05:12 PM
To: David Sterba, [email protected]
Subject: Re: [PATCH v2] btrfs: add mount option to set commit interval

Quoted 4 lines

v2:
* Stefan pointed out a missing break and that /proc/mounts does not show the option.
* fixed missing goto and extra printk parameter after failed match_int

Another newbie question is which version of the kernel do I need to have in order to cleanly apply this patch?  I am finding that it fails to apply to the current stable kernel code (as of now it is v3.10.4) which makes me think your patch has to be applied to a newer one?  Are you patching against the linux git tree meaning I have to use the 3.11 series to try your code?

Is this the correct git repo: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Here is the error in patching observed patching against 3.10.4 as described:

patching file fs/btrfs/ctree.h
Hunk #1 succeeded at 1338 (offset -12 lines).
Hunk #2 succeeded at 1929 (offset -40 lines).
patching file fs/btrfs/disk-io.c
Hunk #1 succeeded at 1713 (offset -24 lines).
Hunk #2 FAILED at 1749.
Hunk #3 succeeded at 2172 with fuzz 1 (offset -17 lines).
1 out of 3 hunks FAILED -- saving rejects to file fs/btrfs/disk-io.c.rej patching file fs/btrfs/super.c
Hunk #1 succeeded at 319 (offset -2 lines).
Hunk #2 succeeded at 360 (offset -2 lines).
Hunk #3 succeeded at 626 (offset -2 lines).
Hunk #4 succeeded at 968 (offset 1 line).

#1 lore raw
Quoted 6 lines

Another newbie question is which version of the kernel do I need to have in order to cleanly apply this patch?  I am finding that it fails to apply to the current stable kernel code (as of now it is v3.10.4) which makes me think your patch has to be applied to a newer one?  Are you patching against the linux git tree meaning I have to use the 3.11 series to try your code?

Try Josef's btrfs-next repo:

https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories#Integration_repository_.28btrfs-next.29

- z