Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0
2#
3# Copyright (c) 2000-2005 Silicon Graphics, Inc.
4# All Rights Reserved.
5#
6
7ccflags-y += -I $(src) # needed for trace events
8ccflags-y += -I $(src)/libxfs
9
10obj-$(CONFIG_XFS_FS) += xfs.o
11
12# this one should be compiled first, as the tracing macros can easily blow up
13xfs-y += xfs_trace.o
14
15# build the libxfs code first
16xfs-y += $(addprefix libxfs/, \
17 xfs_group.o \
18 xfs_ag.o \
19 xfs_ag_resv.o \
20 xfs_alloc.o \
21 xfs_alloc_btree.o \
22 xfs_attr.o \
23 xfs_attr_leaf.o \
24 xfs_attr_remote.o \
25 xfs_bit.o \
26 xfs_bmap.o \
27 xfs_bmap_btree.o \
28 xfs_btree.o \
29 xfs_btree_staging.o \
30 xfs_da_btree.o \
31 xfs_defer.o \
32 xfs_dir2.o \
33 xfs_dir2_block.o \
34 xfs_dir2_data.o \
35 xfs_dir2_leaf.o \
36 xfs_dir2_node.o \
37 xfs_dir2_sf.o \
38 xfs_dquot_buf.o \
39 xfs_exchmaps.o \
40 xfs_ialloc.o \
41 xfs_ialloc_btree.o \
42 xfs_iext_tree.o \
43 xfs_inode_fork.o \
44 xfs_inode_buf.o \
45 xfs_inode_util.o \
46 xfs_log_rlimit.o \
47 xfs_metadir.o \
48 xfs_metafile.o \
49 xfs_parent.o \
50 xfs_rmap.o \
51 xfs_rmap_btree.o \
52 xfs_refcount.o \
53 xfs_refcount_btree.o \
54 xfs_rtrefcount_btree.o \
55 xfs_rtrmap_btree.o \
56 xfs_sb.o \
57 xfs_symlink_remote.o \
58 xfs_trans_inode.o \
59 xfs_trans_resv.o \
60 xfs_trans_space.o \
61 xfs_types.o \
62 )
63# xfs_rtbitmap is shared with libxfs
64xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
65 xfs_rtbitmap.o \
66 xfs_rtgroup.o \
67 xfs_zones.o \
68 )
69
70# highlevel code
71xfs-y += xfs_aops.o \
72 xfs_attr_inactive.o \
73 xfs_attr_list.o \
74 xfs_bmap_util.o \
75 xfs_bio_io.o \
76 xfs_buf.o \
77 xfs_dahash_test.o \
78 xfs_dir2_readdir.o \
79 xfs_discard.o \
80 xfs_error.o \
81 xfs_exchrange.o \
82 xfs_export.o \
83 xfs_extent_busy.o \
84 xfs_file.o \
85 xfs_filestream.o \
86 xfs_fsmap.o \
87 xfs_fsops.o \
88 xfs_globals.o \
89 xfs_handle.o \
90 xfs_health.o \
91 xfs_healthmon.o \
92 xfs_icache.o \
93 xfs_ioctl.o \
94 xfs_iomap.o \
95 xfs_iops.o \
96 xfs_inode.o \
97 xfs_itable.o \
98 xfs_iwalk.o \
99 xfs_message.o \
100 xfs_mount.o \
101 xfs_mru_cache.o \
102 xfs_pwork.o \
103 xfs_reflink.o \
104 xfs_stats.o \
105 xfs_super.o \
106 xfs_symlink.o \
107 xfs_sysfs.o \
108 xfs_trans.o \
109 xfs_verify_media.o \
110 xfs_xattr.o
111
112# low-level transaction/log code
113xfs-y += xfs_log.o \
114 xfs_log_cil.o \
115 xfs_bmap_item.o \
116 xfs_buf_item.o \
117 xfs_buf_item_recover.o \
118 xfs_dquot_item_recover.o \
119 xfs_exchmaps_item.o \
120 xfs_extfree_item.o \
121 xfs_attr_item.o \
122 xfs_icreate_item.o \
123 xfs_inode_item.o \
124 xfs_inode_item_recover.o \
125 xfs_iunlink_item.o \
126 xfs_refcount_item.o \
127 xfs_rmap_item.o \
128 xfs_log_recover.o \
129 xfs_trans_ail.o \
130 xfs_trans_buf.o
131
132# optional features
133xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
134 xfs_dquot_item.o \
135 xfs_trans_dquot.o \
136 xfs_qm_syscalls.o \
137 xfs_qm_bhv.o \
138 xfs_qm.o \
139 xfs_quotaops.o
140
141# xfs_rtbitmap is shared with libxfs
142xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o \
143 xfs_zone_alloc.o \
144 xfs_zone_gc.o \
145 xfs_zone_info.o \
146 xfs_zone_space_resv.o
147
148xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
149xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
150xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
151xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
152
153# notify failure
154ifeq ($(CONFIG_MEMORY_FAILURE),y)
155xfs-$(CONFIG_FS_DAX) += xfs_notify_failure.o
156endif
157
158xfs-$(CONFIG_XFS_DRAIN_INTENTS) += xfs_drain.o
159xfs-$(CONFIG_XFS_LIVE_HOOKS) += xfs_hooks.o
160xfs-$(CONFIG_XFS_MEMORY_BUFS) += xfs_buf_mem.o
161xfs-$(CONFIG_XFS_BTREE_IN_MEM) += libxfs/xfs_btree_mem.o
162
163# online scrub/repair
164ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
165
166# Tracepoints like to blow up, so build that before everything else
167
168xfs-y += $(addprefix scrub/, \
169 trace.o \
170 agb_bitmap.o \
171 agheader.o \
172 alloc.o \
173 attr.o \
174 bitmap.o \
175 bmap.o \
176 btree.o \
177 common.o \
178 dabtree.o \
179 dir.o \
180 dirtree.o \
181 fscounters.o \
182 health.o \
183 ialloc.o \
184 inode.o \
185 iscan.o \
186 listxattr.o \
187 metapath.o \
188 nlinks.o \
189 parent.o \
190 readdir.o \
191 refcount.o \
192 rmap.o \
193 scrub.o \
194 symlink.o \
195 xfarray.o \
196 xfblob.o \
197 xfile.o \
198 )
199
200xfs-$(CONFIG_XFS_ONLINE_SCRUB_STATS) += scrub/stats.o
201
202xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \
203 rgsuper.o \
204 rtbitmap.o \
205 rtrefcount.o \
206 rtrmap.o \
207 rtsummary.o \
208 )
209
210xfs-$(CONFIG_XFS_QUOTA) += $(addprefix scrub/, \
211 dqiterate.o \
212 quota.o \
213 quotacheck.o \
214 )
215
216# online repair
217ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
218xfs-y += $(addprefix scrub/, \
219 agheader_repair.o \
220 alloc_repair.o \
221 attr_repair.o \
222 bmap_repair.o \
223 cow_repair.o \
224 dir_repair.o \
225 dirtree_repair.o \
226 findparent.o \
227 fscounters_repair.o \
228 ialloc_repair.o \
229 inode_repair.o \
230 newbt.o \
231 nlinks_repair.o \
232 orphanage.o \
233 parent_repair.o \
234 rcbag_btree.o \
235 rcbag.o \
236 reap.o \
237 refcount_repair.o \
238 repair.o \
239 rmap_repair.o \
240 symlink_repair.o \
241 tempfile.o \
242 )
243
244xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \
245 rtbitmap_repair.o \
246 rtrefcount_repair.o \
247 rtrmap_repair.o \
248 rtsummary_repair.o \
249 )
250
251xfs-$(CONFIG_XFS_QUOTA) += $(addprefix scrub/, \
252 quota_repair.o \
253 quotacheck_repair.o \
254 )
255endif
256endif