Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFS: Combine nfs_idmap_{init|quit}() and nfs_idmap_{init|quit}_keyring()

The idmap_init() and idmap_quit() functions only exist to call the
_keyring() version. Let's just call the keyring() functions directly.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

authored by

Anna Schumaker and committed by
Trond Myklebust
fb2a525c d8efa4e6

+2 -12
+2 -12
fs/nfs/nfs4idmap.c
··· 184 184 .read = user_read, 185 185 }; 186 186 187 - static int nfs_idmap_init_keyring(void) 187 + int nfs_idmap_init(void) 188 188 { 189 189 struct cred *cred; 190 190 struct key *keyring; ··· 230 230 return ret; 231 231 } 232 232 233 - static void nfs_idmap_quit_keyring(void) 233 + void nfs_idmap_quit(void) 234 234 { 235 235 key_revoke(id_resolver_cache->thread_keyring); 236 236 unregister_key_type(&key_type_id_resolver); ··· 490 490 &idmap->idmap_pdo); 491 491 rpc_destroy_pipe_data(idmap->idmap_pipe); 492 492 kfree(idmap); 493 - } 494 - 495 - int nfs_idmap_init(void) 496 - { 497 - return nfs_idmap_init_keyring(); 498 - } 499 - 500 - void nfs_idmap_quit(void) 501 - { 502 - nfs_idmap_quit_keyring(); 503 493 } 504 494 505 495 static int nfs_idmap_prepare_message(char *desc, struct idmap *idmap,