1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # 2 # 3 # Copyright (c) 2000-2005 Silicon Graphics, In 3 # Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 # All Rights Reserved. 4 # All Rights Reserved. 5 # 5 # 6 6 7 ccflags-y += -I $(src) # needed for t 7 ccflags-y += -I $(src) # needed for trace events 8 ccflags-y += -I $(src)/libxfs 8 ccflags-y += -I $(src)/libxfs 9 9 10 obj-$(CONFIG_XFS_FS) += xfs.o 10 obj-$(CONFIG_XFS_FS) += xfs.o 11 11 12 # this one should be compiled first, as the tr 12 # this one should be compiled first, as the tracing macros can easily blow up 13 xfs-y += xfs_trace.o 13 xfs-y += xfs_trace.o 14 14 15 # build the libxfs code first 15 # build the libxfs code first 16 xfs-y += $(addprefix 16 xfs-y += $(addprefix libxfs/, \ 17 xfs_ag.o \ 17 xfs_ag.o \ 18 xfs_alloc.o 18 xfs_alloc.o \ 19 xfs_alloc_b 19 xfs_alloc_btree.o \ 20 xfs_attr.o 20 xfs_attr.o \ 21 xfs_attr_le 21 xfs_attr_leaf.o \ 22 xfs_attr_re 22 xfs_attr_remote.o \ 23 xfs_bit.o \ 23 xfs_bit.o \ 24 xfs_bmap.o 24 xfs_bmap.o \ 25 xfs_bmap_bt 25 xfs_bmap_btree.o \ 26 xfs_btree.o 26 xfs_btree.o \ 27 xfs_btree_s 27 xfs_btree_staging.o \ 28 xfs_da_btre 28 xfs_da_btree.o \ 29 xfs_defer.o 29 xfs_defer.o \ 30 xfs_dir2.o 30 xfs_dir2.o \ 31 xfs_dir2_bl 31 xfs_dir2_block.o \ 32 xfs_dir2_da 32 xfs_dir2_data.o \ 33 xfs_dir2_le 33 xfs_dir2_leaf.o \ 34 xfs_dir2_no 34 xfs_dir2_node.o \ 35 xfs_dir2_sf 35 xfs_dir2_sf.o \ 36 xfs_dquot_b 36 xfs_dquot_buf.o \ 37 xfs_exchmap 37 xfs_exchmaps.o \ 38 xfs_ialloc. 38 xfs_ialloc.o \ 39 xfs_ialloc_ 39 xfs_ialloc_btree.o \ 40 xfs_iext_tr 40 xfs_iext_tree.o \ 41 xfs_inode_f 41 xfs_inode_fork.o \ 42 xfs_inode_b 42 xfs_inode_buf.o \ 43 xfs_inode_u << 44 xfs_log_rli 43 xfs_log_rlimit.o \ 45 xfs_ag_resv 44 xfs_ag_resv.o \ 46 xfs_parent. 45 xfs_parent.o \ 47 xfs_rmap.o 46 xfs_rmap.o \ 48 xfs_rmap_bt 47 xfs_rmap_btree.o \ 49 xfs_refcoun 48 xfs_refcount.o \ 50 xfs_refcoun 49 xfs_refcount_btree.o \ 51 xfs_sb.o \ 50 xfs_sb.o \ 52 xfs_symlink 51 xfs_symlink_remote.o \ 53 xfs_trans_i 52 xfs_trans_inode.o \ 54 xfs_trans_r 53 xfs_trans_resv.o \ 55 xfs_trans_s 54 xfs_trans_space.o \ 56 xfs_types.o 55 xfs_types.o \ 57 ) 56 ) 58 # xfs_rtbitmap is shared with libxfs 57 # xfs_rtbitmap is shared with libxfs 59 xfs-$(CONFIG_XFS_RT) += $(addprefix 58 xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \ 60 xfs_rtbitma 59 xfs_rtbitmap.o \ 61 ) 60 ) 62 61 63 # highlevel code 62 # highlevel code 64 xfs-y += xfs_aops.o 63 xfs-y += xfs_aops.o \ 65 xfs_attr_in 64 xfs_attr_inactive.o \ 66 xfs_attr_li 65 xfs_attr_list.o \ 67 xfs_bmap_ut 66 xfs_bmap_util.o \ 68 xfs_bio_io. 67 xfs_bio_io.o \ 69 xfs_buf.o \ 68 xfs_buf.o \ 70 xfs_dahash_ 69 xfs_dahash_test.o \ 71 xfs_dir2_re 70 xfs_dir2_readdir.o \ 72 xfs_discard 71 xfs_discard.o \ 73 xfs_error.o 72 xfs_error.o \ 74 xfs_exchran 73 xfs_exchrange.o \ 75 xfs_export. 74 xfs_export.o \ 76 xfs_extent_ 75 xfs_extent_busy.o \ 77 xfs_file.o 76 xfs_file.o \ 78 xfs_filestr 77 xfs_filestream.o \ 79 xfs_fsmap.o 78 xfs_fsmap.o \ 80 xfs_fsops.o 79 xfs_fsops.o \ 81 xfs_globals 80 xfs_globals.o \ 82 xfs_handle. 81 xfs_handle.o \ 83 xfs_health. 82 xfs_health.o \ 84 xfs_icache. 83 xfs_icache.o \ 85 xfs_ioctl.o 84 xfs_ioctl.o \ 86 xfs_iomap.o 85 xfs_iomap.o \ 87 xfs_iops.o 86 xfs_iops.o \ 88 xfs_inode.o 87 xfs_inode.o \ 89 xfs_itable. 88 xfs_itable.o \ 90 xfs_iwalk.o 89 xfs_iwalk.o \ 91 xfs_message 90 xfs_message.o \ 92 xfs_mount.o 91 xfs_mount.o \ 93 xfs_mru_cac 92 xfs_mru_cache.o \ 94 xfs_pwork.o 93 xfs_pwork.o \ 95 xfs_reflink 94 xfs_reflink.o \ 96 xfs_stats.o 95 xfs_stats.o \ 97 xfs_super.o 96 xfs_super.o \ 98 xfs_symlink 97 xfs_symlink.o \ 99 xfs_sysfs.o 98 xfs_sysfs.o \ 100 xfs_trans.o 99 xfs_trans.o \ 101 xfs_xattr.o 100 xfs_xattr.o 102 101 103 # low-level transaction/log code 102 # low-level transaction/log code 104 xfs-y += xfs_log.o \ 103 xfs-y += xfs_log.o \ 105 xfs_log_cil 104 xfs_log_cil.o \ 106 xfs_bmap_it 105 xfs_bmap_item.o \ 107 xfs_buf_ite 106 xfs_buf_item.o \ 108 xfs_buf_ite 107 xfs_buf_item_recover.o \ 109 xfs_dquot_i 108 xfs_dquot_item_recover.o \ 110 xfs_exchmap 109 xfs_exchmaps_item.o \ 111 xfs_extfree 110 xfs_extfree_item.o \ 112 xfs_attr_it 111 xfs_attr_item.o \ 113 xfs_icreate 112 xfs_icreate_item.o \ 114 xfs_inode_i 113 xfs_inode_item.o \ 115 xfs_inode_i 114 xfs_inode_item_recover.o \ 116 xfs_iunlink 115 xfs_iunlink_item.o \ 117 xfs_refcoun 116 xfs_refcount_item.o \ 118 xfs_rmap_it 117 xfs_rmap_item.o \ 119 xfs_log_rec 118 xfs_log_recover.o \ 120 xfs_trans_a 119 xfs_trans_ail.o \ 121 xfs_trans_b 120 xfs_trans_buf.o 122 121 123 # optional features 122 # optional features 124 xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o 123 xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \ 125 xfs_dquot_i 124 xfs_dquot_item.o \ 126 xfs_trans_d 125 xfs_trans_dquot.o \ 127 xfs_qm_sysc 126 xfs_qm_syscalls.o \ 128 xfs_qm_bhv. 127 xfs_qm_bhv.o \ 129 xfs_qm.o \ 128 xfs_qm.o \ 130 xfs_quotaop 129 xfs_quotaops.o 131 130 132 # xfs_rtbitmap is shared with libxfs 131 # xfs_rtbitmap is shared with libxfs 133 xfs-$(CONFIG_XFS_RT) += xfs_rtalloc 132 xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o 134 133 135 xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o 134 xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o 136 xfs-$(CONFIG_SYSCTL) += xfs_sysctl. 135 xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o 137 xfs-$(CONFIG_COMPAT) += xfs_ioctl32 136 xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o 138 xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs 137 xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o 139 138 140 # notify failure 139 # notify failure 141 ifeq ($(CONFIG_MEMORY_FAILURE),y) 140 ifeq ($(CONFIG_MEMORY_FAILURE),y) 142 xfs-$(CONFIG_FS_DAX) += xfs_notify_ 141 xfs-$(CONFIG_FS_DAX) += xfs_notify_failure.o 143 endif 142 endif 144 143 145 xfs-$(CONFIG_XFS_DRAIN_INTENTS) += xfs_drain.o 144 xfs-$(CONFIG_XFS_DRAIN_INTENTS) += xfs_drain.o 146 xfs-$(CONFIG_XFS_LIVE_HOOKS) += xfs_hooks.o 145 xfs-$(CONFIG_XFS_LIVE_HOOKS) += xfs_hooks.o 147 xfs-$(CONFIG_XFS_MEMORY_BUFS) += xfs_buf_mem 146 xfs-$(CONFIG_XFS_MEMORY_BUFS) += xfs_buf_mem.o 148 xfs-$(CONFIG_XFS_BTREE_IN_MEM) += libxfs/xfs_ 147 xfs-$(CONFIG_XFS_BTREE_IN_MEM) += libxfs/xfs_btree_mem.o 149 148 150 # online scrub/repair 149 # online scrub/repair 151 ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y) 150 ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y) 152 151 153 # Tracepoints like to blow up, so build that b 152 # Tracepoints like to blow up, so build that before everything else 154 153 155 xfs-y += $(addprefix 154 xfs-y += $(addprefix scrub/, \ 156 trace.o \ 155 trace.o \ 157 agb_bitmap. 156 agb_bitmap.o \ 158 agheader.o 157 agheader.o \ 159 alloc.o \ 158 alloc.o \ 160 attr.o \ 159 attr.o \ 161 bitmap.o \ 160 bitmap.o \ 162 bmap.o \ 161 bmap.o \ 163 btree.o \ 162 btree.o \ 164 common.o \ 163 common.o \ 165 dabtree.o \ 164 dabtree.o \ 166 dir.o \ 165 dir.o \ 167 dirtree.o \ 166 dirtree.o \ 168 fscounters. 167 fscounters.o \ 169 health.o \ 168 health.o \ 170 ialloc.o \ 169 ialloc.o \ 171 inode.o \ 170 inode.o \ 172 iscan.o \ 171 iscan.o \ 173 listxattr.o 172 listxattr.o \ 174 nlinks.o \ 173 nlinks.o \ 175 parent.o \ 174 parent.o \ 176 readdir.o \ 175 readdir.o \ 177 refcount.o 176 refcount.o \ 178 rmap.o \ 177 rmap.o \ 179 scrub.o \ 178 scrub.o \ 180 symlink.o \ 179 symlink.o \ 181 xfarray.o \ 180 xfarray.o \ 182 xfblob.o \ 181 xfblob.o \ 183 xfile.o \ 182 xfile.o \ 184 ) 183 ) 185 184 186 xfs-$(CONFIG_XFS_ONLINE_SCRUB_STATS) += scrub/ 185 xfs-$(CONFIG_XFS_ONLINE_SCRUB_STATS) += scrub/stats.o 187 186 188 xfs-$(CONFIG_XFS_RT) += $(addprefix 187 xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \ 189 rtbitmap.o 188 rtbitmap.o \ 190 rtsummary.o 189 rtsummary.o \ 191 ) 190 ) 192 191 193 xfs-$(CONFIG_XFS_QUOTA) += $(addprefix 192 xfs-$(CONFIG_XFS_QUOTA) += $(addprefix scrub/, \ 194 dqiterate.o 193 dqiterate.o \ 195 quota.o \ 194 quota.o \ 196 quotacheck. 195 quotacheck.o \ 197 ) 196 ) 198 197 199 # online repair 198 # online repair 200 ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y) 199 ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y) 201 xfs-y += $(addprefix 200 xfs-y += $(addprefix scrub/, \ 202 agheader_re 201 agheader_repair.o \ 203 alloc_repai 202 alloc_repair.o \ 204 attr_repair 203 attr_repair.o \ 205 bmap_repair 204 bmap_repair.o \ 206 cow_repair. 205 cow_repair.o \ 207 dir_repair. 206 dir_repair.o \ 208 dirtree_rep 207 dirtree_repair.o \ 209 findparent. 208 findparent.o \ 210 fscounters_ 209 fscounters_repair.o \ 211 ialloc_repa 210 ialloc_repair.o \ 212 inode_repai 211 inode_repair.o \ 213 newbt.o \ 212 newbt.o \ 214 nlinks_repa 213 nlinks_repair.o \ 215 orphanage.o 214 orphanage.o \ 216 parent_repa 215 parent_repair.o \ 217 rcbag_btree 216 rcbag_btree.o \ 218 rcbag.o \ 217 rcbag.o \ 219 reap.o \ 218 reap.o \ 220 refcount_re 219 refcount_repair.o \ 221 repair.o \ 220 repair.o \ 222 rmap_repair 221 rmap_repair.o \ 223 symlink_rep 222 symlink_repair.o \ 224 tempfile.o 223 tempfile.o \ 225 ) 224 ) 226 225 227 xfs-$(CONFIG_XFS_RT) += $(addprefix 226 xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \ 228 rtbitmap_re 227 rtbitmap_repair.o \ 229 rtsummary_r 228 rtsummary_repair.o \ 230 ) 229 ) 231 230 232 xfs-$(CONFIG_XFS_QUOTA) += $(addprefix 231 xfs-$(CONFIG_XFS_QUOTA) += $(addprefix scrub/, \ 233 quota_repai 232 quota_repair.o \ 234 quotacheck_ 233 quotacheck_repair.o \ 235 ) 234 ) 236 endif 235 endif 237 endif 236 endif
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.