nfs4super.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) | nfs4super.c (95ad37f90c338e3fd4abf61cecfe02b6f3e080f0) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com> 4 */ 5#include <linux/init.h> 6#include <linux/module.h> 7#include <linux/mount.h> 8#include <linux/nfs4_mount.h> --- 55 unchanged lines hidden (view full) --- 64 clear_inode(inode); 65 /* If we are holding a delegation, return and free it */ 66 nfs_inode_evict_delegation(inode); 67 /* Note that above delegreturn would trigger pnfs return-on-close */ 68 pnfs_return_layout(inode); 69 pnfs_destroy_layout(NFS_I(inode)); 70 /* First call standard NFS clear_inode() code */ 71 nfs_clear_inode(inode); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2012 Bryan Schumaker <bjschuma@netapp.com> 4 */ 5#include <linux/init.h> 6#include <linux/module.h> 7#include <linux/mount.h> 8#include <linux/nfs4_mount.h> --- 55 unchanged lines hidden (view full) --- 64 clear_inode(inode); 65 /* If we are holding a delegation, return and free it */ 66 nfs_inode_evict_delegation(inode); 67 /* Note that above delegreturn would trigger pnfs return-on-close */ 68 pnfs_return_layout(inode); 69 pnfs_destroy_layout(NFS_I(inode)); 70 /* First call standard NFS clear_inode() code */ 71 nfs_clear_inode(inode); |
72 nfs4_xattr_cache_zap(inode); |
|
72} 73 74struct nfs_referral_count { 75 struct list_head list; 76 const struct task_struct *task; 77 unsigned int referral_count; 78}; 79 --- 183 unchanged lines hidden (view full) --- 263 err = nfs_dns_resolver_init(); 264 if (err) 265 goto out; 266 267 err = nfs_idmap_init(); 268 if (err) 269 goto out1; 270 | 73} 74 75struct nfs_referral_count { 76 struct list_head list; 77 const struct task_struct *task; 78 unsigned int referral_count; 79}; 80 --- 183 unchanged lines hidden (view full) --- 264 err = nfs_dns_resolver_init(); 265 if (err) 266 goto out; 267 268 err = nfs_idmap_init(); 269 if (err) 270 goto out1; 271 |
272#ifdef CONFIG_NFS_V4_2 273 err = nfs4_xattr_cache_init(); 274 if (err) 275 goto out2; 276#endif 277 |
|
271 err = nfs4_register_sysctl(); 272 if (err) 273 goto out2; 274 275 register_nfs_version(&nfs_v4); 276 return 0; 277out2: 278 nfs_idmap_quit(); --- 4 unchanged lines hidden (view full) --- 283} 284 285static void __exit exit_nfs_v4(void) 286{ 287 /* Not called in the _init(), conditionally loaded */ 288 nfs4_pnfs_v3_ds_connect_unload(); 289 290 unregister_nfs_version(&nfs_v4); | 278 err = nfs4_register_sysctl(); 279 if (err) 280 goto out2; 281 282 register_nfs_version(&nfs_v4); 283 return 0; 284out2: 285 nfs_idmap_quit(); --- 4 unchanged lines hidden (view full) --- 290} 291 292static void __exit exit_nfs_v4(void) 293{ 294 /* Not called in the _init(), conditionally loaded */ 295 nfs4_pnfs_v3_ds_connect_unload(); 296 297 unregister_nfs_version(&nfs_v4); |
298#ifdef CONFIG_NFS_V4_2 299 nfs4_xattr_cache_exit(); 300#endif |
|
291 nfs4_unregister_sysctl(); 292 nfs_idmap_quit(); 293 nfs_dns_resolver_destroy(); 294} 295 296MODULE_LICENSE("GPL"); 297 298module_init(init_nfs_v4); 299module_exit(exit_nfs_v4); | 301 nfs4_unregister_sysctl(); 302 nfs_idmap_quit(); 303 nfs_dns_resolver_destroy(); 304} 305 306MODULE_LICENSE("GPL"); 307 308module_init(init_nfs_v4); 309module_exit(exit_nfs_v4); |