xfs_defer.c (e2c78949b641d34cb4051b32c2fa5e03a4bfef35) | xfs_defer.c (4136e38af728eddcab2e51aecde28e94d0782b9b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright (C) 2016 Oracle. All Rights Reserved. 4 * Author: Darrick J. Wong <darrick.wong@oracle.com> 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 859 unchanged lines hidden (view full) --- 868 if (error) 869 goto err; 870 error = xfs_bmap_intent_init_cache(); 871 if (error) 872 goto err; 873 error = xfs_extfree_intent_init_cache(); 874 if (error) 875 goto err; | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Copyright (C) 2016 Oracle. All Rights Reserved. 4 * Author: Darrick J. Wong <darrick.wong@oracle.com> 5 */ 6#include "xfs.h" 7#include "xfs_fs.h" 8#include "xfs_shared.h" --- 859 unchanged lines hidden (view full) --- 868 if (error) 869 goto err; 870 error = xfs_bmap_intent_init_cache(); 871 if (error) 872 goto err; 873 error = xfs_extfree_intent_init_cache(); 874 if (error) 875 goto err; |
876 error = xfs_attri_init_cache(); 877 if (error) 878 goto err; 879 error = xfs_attrd_init_cache(); 880 if (error) 881 goto err; | |
882 error = xfs_attr_intent_init_cache(); 883 if (error) 884 goto err; 885 return 0; 886err: 887 xfs_defer_destroy_item_caches(); 888 return error; 889} 890 891/* Destroy all the deferred work item caches, if they've been allocated. */ 892void 893xfs_defer_destroy_item_caches(void) 894{ 895 xfs_attr_intent_destroy_cache(); | 876 error = xfs_attr_intent_init_cache(); 877 if (error) 878 goto err; 879 return 0; 880err: 881 xfs_defer_destroy_item_caches(); 882 return error; 883} 884 885/* Destroy all the deferred work item caches, if they've been allocated. */ 886void 887xfs_defer_destroy_item_caches(void) 888{ 889 xfs_attr_intent_destroy_cache(); |
896 xfs_attri_destroy_cache(); 897 xfs_attrd_destroy_cache(); | |
898 xfs_extfree_intent_destroy_cache(); 899 xfs_bmap_intent_destroy_cache(); 900 xfs_refcount_intent_destroy_cache(); 901 xfs_rmap_intent_destroy_cache(); 902 xfs_defer_destroy_cache(); 903} | 890 xfs_extfree_intent_destroy_cache(); 891 xfs_bmap_intent_destroy_cache(); 892 xfs_refcount_intent_destroy_cache(); 893 xfs_rmap_intent_destroy_cache(); 894 xfs_defer_destroy_cache(); 895} |