bcachefs: Set the last mount time using the realtime clock
authorTim Schlueter <schlueter.tim@linux.com>
Mon, 5 Nov 2018 04:14:46 +0000 (20:14 -0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:11 +0000 (17:08 -0400)
commita420eea6890d709b7b9b33222d4fecc7a7ad9bd4
tree612681209b6d00b2b287a523693406471eb200fc
parent4628529f152782933865257796000f1f6702a9ee
bcachefs: Set the last mount time using the realtime clock

This way the last mount time is actually meaningful instead of just being
various times from 1970 (which happens with the monotonic clock).

Also, roundup_pow_of_two() is undefined when passed in 0, so check before
calling it.

Signed-off-by: Tim Schlueter <schlueter.tim@linux.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fifo.h
fs/bcachefs/super.c