Commit a420eea6 authored by Tim Schlueter's avatar Tim Schlueter Committed by Kent Overstreet
Browse files

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: default avatarTim Schlueter <schlueter.tim@linux.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 4628529f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment