btrfs: add mount option to set commit interval
authorDavid Sterba <[email protected]>
Thu, 1 Aug 2013 16:14:52 +0000 (18:14 +0200)
committerChris Mason <[email protected]>
Sun, 1 Sep 2013 12:04:51 +0000 (08:04 -0400)
commit8b87dc17fbc7443bf4c6c096279c35e89fb51326
treeaa53657898d003b48135fe4b959c97b48e591339
parent9ec726775188906192f78ab9187640afd81ab996
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 <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/super.c