diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-02-10 17:34:07 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-02-10 17:34:17 +0100 |
commit | b4db2b35fc444409daf483006111a2a705550fff (patch) | |
tree | 3c7b9f49aadd58cbc3b53414a964bf5a27101a9c /fs/afs/internal.h | |
parent | afs: Move UUID struct to linux/uuid.h (diff) | |
download | linux-b4db2b35fc444409daf483006111a2a705550fff.tar.xz linux-b4db2b35fc444409daf483006111a2a705550fff.zip |
afs: Use core kernel UUID generation
AFS uses a time based UUID to identify the host itself. This requires
getting a timestamp which is currently done through the getnstimeofday()
interface that we want to eventually get rid of.
Instead of replacing it with a ktime-based interface, simply remove the
entire function and use generate_random_uuid() instead, which has a v4
("completely random") UUID instead of the time-based one.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r-- | fs/afs/internal.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index 79061fa17168..8acf3670e756 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -561,6 +561,11 @@ extern int afs_mntpt_check_symlink(struct afs_vnode *, struct key *); extern void afs_mntpt_kill_timer(void); /* + * netdevices.c + */ +extern int afs_get_ipv4_interfaces(struct afs_interface *, size_t, bool); + +/* * proc.c */ extern int afs_proc_init(void); @@ -624,12 +629,6 @@ extern int afs_fs_init(void); extern void afs_fs_exit(void); /* - * use-rtnetlink.c - */ -extern int afs_get_ipv4_interfaces(struct afs_interface *, size_t, bool); -extern int afs_get_MAC_address(u8 *, size_t); - -/* * vlclient.c */ extern int afs_vl_get_entry_by_name(struct in_addr *, struct key *, |