OSDN Git Service

fat: use prandom_u32() for i_generation
authorArnd Bergmann <arnd@arndb.de>
Thu, 24 Oct 2019 13:31:19 +0000 (15:31 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 17:07:31 +0000 (18:07 +0100)
commit74b5cab6cc8554d759c3cd5aeba884bd8b12f22e
treee67b584c5b55ba511890b3b593da30dde9034e9a
parente42617b825f8073569da76dc4510bfa019b1c35a
fat: 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>
fs/fat/inode.c