btrfs: use helpers to convert from seconds to jiffies in transaction_kthread
authorNikolay Borisov <nborisov@suse.com>
Thu, 8 Oct 2020 12:24:27 +0000 (15:24 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 7 Dec 2020 15:24:00 +0000 (16:24 +0100)
commitba1bc00f358190ae1011eae82766aba5c73c9ca2
treeaa820b11eb276db32a1254fc726fa03b4235fc46
parent089c8b0551f46e1c44269c10b0576e031e942acd
btrfs: use helpers to convert from seconds to jiffies in transaction_kthread

The kernel provides easy to understand helpers to convert from human
understandable units to the kernel-friendly 'jiffies'. So let's use
those to make the code easier to understand. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c