@@ -56,28 +56,6 @@ static struct kset *xfs_kset; /* top-level xfs sysfs dir */
56
56
static struct xfs_kobj xfs_dbg_kobj ; /* global debug sysfs attrs */
57
57
#endif
58
58
59
- #ifdef CONFIG_HOTPLUG_CPU
60
- static LIST_HEAD (xfs_mount_list );
61
- static DEFINE_SPINLOCK (xfs_mount_list_lock );
62
-
63
- static inline void xfs_mount_list_add (struct xfs_mount * mp )
64
- {
65
- spin_lock (& xfs_mount_list_lock );
66
- list_add (& mp -> m_mount_list , & xfs_mount_list );
67
- spin_unlock (& xfs_mount_list_lock );
68
- }
69
-
70
- static inline void xfs_mount_list_del (struct xfs_mount * mp )
71
- {
72
- spin_lock (& xfs_mount_list_lock );
73
- list_del (& mp -> m_mount_list );
74
- spin_unlock (& xfs_mount_list_lock );
75
- }
76
- #else /* !CONFIG_HOTPLUG_CPU */
77
- static inline void xfs_mount_list_add (struct xfs_mount * mp ) {}
78
- static inline void xfs_mount_list_del (struct xfs_mount * mp ) {}
79
- #endif
80
-
81
59
enum xfs_dax_mode {
82
60
XFS_DAX_INODE = 0 ,
83
61
XFS_DAX_ALWAYS = 1 ,
@@ -1167,7 +1145,6 @@ xfs_fs_put_super(
1167
1145
xfs_freesb (mp );
1168
1146
xchk_mount_stats_free (mp );
1169
1147
free_percpu (mp -> m_stats .xs_stats );
1170
- xfs_mount_list_del (mp );
1171
1148
xfs_inodegc_free_percpu (mp );
1172
1149
xfs_destroy_percpu_counters (mp );
1173
1150
xfs_destroy_mount_workqueues (mp );
@@ -1576,13 +1553,6 @@ xfs_fs_fill_super(
1576
1553
if (error )
1577
1554
goto out_destroy_counters ;
1578
1555
1579
- /*
1580
- * All percpu data structures requiring cleanup when a cpu goes offline
1581
- * must be allocated before adding this @mp to the cpu-dead handler's
1582
- * mount list.
1583
- */
1584
- xfs_mount_list_add (mp );
1585
-
1586
1556
/* Allocate stats memory before we do operations that might use it */
1587
1557
mp -> m_stats .xs_stats = alloc_percpu (struct xfsstats );
1588
1558
if (!mp -> m_stats .xs_stats ) {
@@ -1780,7 +1750,6 @@ xfs_fs_fill_super(
1780
1750
out_free_stats :
1781
1751
free_percpu (mp -> m_stats .xs_stats );
1782
1752
out_destroy_inodegc :
1783
- xfs_mount_list_del (mp );
1784
1753
xfs_inodegc_free_percpu (mp );
1785
1754
out_destroy_counters :
1786
1755
xfs_destroy_percpu_counters (mp );
@@ -2330,14 +2299,6 @@ static int
2330
2299
xfs_cpu_dead (
2331
2300
unsigned int cpu )
2332
2301
{
2333
- struct xfs_mount * mp , * n ;
2334
-
2335
- spin_lock (& xfs_mount_list_lock );
2336
- list_for_each_entry_safe (mp , n , & xfs_mount_list , m_mount_list ) {
2337
- spin_unlock (& xfs_mount_list_lock );
2338
- spin_lock (& xfs_mount_list_lock );
2339
- }
2340
- spin_unlock (& xfs_mount_list_lock );
2341
2302
return 0 ;
2342
2303
}
2343
2304
0 commit comments