staging: exfat: use prandom_u32() for i_generation
authorArnd Bergmann <arnd@arndb.de>
Fri, 8 Nov 2019 21:32:39 +0000 (22:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Nov 2019 15:37:59 +0000 (16:37 +0100)
commita46e810975b8bde22e612c12331e1c5207797435
treedaf7ceebda7fd0aa33f3144dede5b1c4ff9161e1
parent1fa489b14dbc4968284711874ed35566fcdf712b
staging: exfat: use prandom_u32() for i_generation

Similar to commit 46c9a946d766 ("shmem: use monotonic time for i_generation")
we should not use the deprecated get_seconds() interface for i_generation.

prandom_u32() is the replacement used in other file systems.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Link: https://lore.kernel.org/r/20191108213257.3097633-2-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat_super.c