]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add mount option to set commit interval
authorDavid Sterba <dsterba@suse.cz>
Thu, 1 Aug 2013 16:14:52 +0000 (18:14 +0200)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:51 +0000 (08:04 -0400)
commit7ddbb2278959e5e9ddec090ac3956d4cd17d0480
treeaa53657898d003b48135fe4b959c97b48e591339
parent9bb3cf1e34c642e288ee020942e649054c98e113
btrfs: add mount option to set commit interval

I'ts hardcoded to 30 seconds which is fine for most users. Higher values
defer data being synced to permanent storage with obvious consequences
when the system crashes. The upper bound is not forced, but a warning is
printed if it's more than 300 seconds (5 minutes).

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/super.c