| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 | ccflags-y += -I $(src)
|
| 8 | ccflags-y += -I $(src)/libxfs
|
| 9 |
|
| 10 | obj-$(CONFIG_XFS_FS) += xfs.o
|
| 11 |
|
| 12 |
|
| 13 | xfs-y += xfs_trace.o
|
| 14 |
|
| 15 |
|
| 16 | xfs-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 |
|
| 64 | xfs-$(CONFIG_XFS_RT) += $(addprefix libxfs/, \
|
| 65 | xfs_rtbitmap.o \
|
| 66 | xfs_rtgroup.o \
|
| 67 | xfs_zones.o \
|
| 68 | )
|
| 69 |
|
| 70 |
|
| 71 | xfs-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_ioend.o \
|
| 95 | xfs_iomap.o \
|
| 96 | xfs_iops.o \
|
| 97 | xfs_inode.o \
|
| 98 | xfs_itable.o \
|
| 99 | xfs_iwalk.o \
|
| 100 | xfs_message.o \
|
| 101 | xfs_mount.o \
|
| 102 | xfs_mru_cache.o \
|
| 103 | xfs_pwork.o \
|
| 104 | xfs_reflink.o \
|
| 105 | xfs_stats.o \
|
| 106 | xfs_super.o \
|
| 107 | xfs_symlink.o \
|
| 108 | xfs_sysfs.o \
|
| 109 | xfs_trans.o \
|
| 110 | xfs_verify_media.o \
|
| 111 | xfs_xattr.o
|
| 112 |
|
| 113 |
|
| 114 | xfs-y += xfs_log.o \
|
| 115 | xfs_log_cil.o \
|
| 116 | xfs_bmap_item.o \
|
| 117 | xfs_buf_item.o \
|
| 118 | xfs_buf_item_recover.o \
|
| 119 | xfs_dquot_item_recover.o \
|
| 120 | xfs_exchmaps_item.o \
|
| 121 | xfs_extfree_item.o \
|
| 122 | xfs_attr_item.o \
|
| 123 | xfs_icreate_item.o \
|
| 124 | xfs_inode_item.o \
|
| 125 | xfs_inode_item_recover.o \
|
| 126 | xfs_iunlink_item.o \
|
| 127 | xfs_refcount_item.o \
|
| 128 | xfs_rmap_item.o \
|
| 129 | xfs_log_recover.o \
|
| 130 | xfs_trans_ail.o \
|
| 131 | xfs_trans_buf.o
|
| 132 |
|
| 133 |
|
| 134 | xfs-$(CONFIG_XFS_QUOTA) += xfs_dquot.o \
|
| 135 | xfs_dquot_item.o \
|
| 136 | xfs_trans_dquot.o \
|
| 137 | xfs_qm_syscalls.o \
|
| 138 | xfs_qm_bhv.o \
|
| 139 | xfs_qm.o \
|
| 140 | xfs_quotaops.o
|
| 141 |
|
| 142 |
|
| 143 | xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o \
|
| 144 | xfs_zone_alloc.o \
|
| 145 | xfs_zone_gc.o \
|
| 146 | xfs_zone_info.o \
|
| 147 | xfs_zone_space_resv.o
|
| 148 |
|
| 149 | xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o
|
| 150 | xfs-$(CONFIG_SYSCTL) += xfs_sysctl.o
|
| 151 | xfs-$(CONFIG_COMPAT) += xfs_ioctl32.o
|
| 152 | xfs-$(CONFIG_EXPORTFS_BLOCK_OPS) += xfs_pnfs.o
|
| 153 |
|
| 154 |
|
| 155 | ifeq ($(CONFIG_MEMORY_FAILURE),y)
|
| 156 | xfs-$(CONFIG_FS_DAX) += xfs_notify_failure.o
|
| 157 | endif
|
| 158 |
|
| 159 | xfs-$(CONFIG_XFS_DRAIN_INTENTS) += xfs_drain.o
|
| 160 | xfs-$(CONFIG_XFS_LIVE_HOOKS) += xfs_hooks.o
|
| 161 | xfs-$(CONFIG_XFS_MEMORY_BUFS) += xfs_buf_mem.o
|
| 162 | xfs-$(CONFIG_XFS_BTREE_IN_MEM) += libxfs/xfs_btree_mem.o
|
| 163 |
|
| 164 |
|
| 165 | ifeq ($(CONFIG_XFS_ONLINE_SCRUB),y)
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 | xfs-y += $(addprefix scrub/, \
|
| 170 | trace.o \
|
| 171 | agb_bitmap.o \
|
| 172 | agheader.o \
|
| 173 | alloc.o \
|
| 174 | attr.o \
|
| 175 | bitmap.o \
|
| 176 | bmap.o \
|
| 177 | btree.o \
|
| 178 | common.o \
|
| 179 | dabtree.o \
|
| 180 | dir.o \
|
| 181 | dirtree.o \
|
| 182 | fscounters.o \
|
| 183 | health.o \
|
| 184 | ialloc.o \
|
| 185 | inode.o \
|
| 186 | iscan.o \
|
| 187 | listxattr.o \
|
| 188 | metapath.o \
|
| 189 | nlinks.o \
|
| 190 | parent.o \
|
| 191 | readdir.o \
|
| 192 | refcount.o \
|
| 193 | rmap.o \
|
| 194 | scrub.o \
|
| 195 | symlink.o \
|
| 196 | xfarray.o \
|
| 197 | xfblob.o \
|
| 198 | xfile.o \
|
| 199 | )
|
| 200 |
|
| 201 | xfs-$(CONFIG_XFS_ONLINE_SCRUB_STATS) += scrub/stats.o
|
| 202 |
|
| 203 | xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \
|
| 204 | rgsuper.o \
|
| 205 | rtbitmap.o \
|
| 206 | rtrefcount.o \
|
| 207 | rtrmap.o \
|
| 208 | rtsummary.o \
|
| 209 | )
|
| 210 |
|
| 211 | xfs-$(CONFIG_XFS_QUOTA) += $(addprefix scrub/, \
|
| 212 | dqiterate.o \
|
| 213 | quota.o \
|
| 214 | quotacheck.o \
|
| 215 | )
|
| 216 |
|
| 217 |
|
| 218 | ifeq ($(CONFIG_XFS_ONLINE_REPAIR),y)
|
| 219 | xfs-y += $(addprefix scrub/, \
|
| 220 | agheader_repair.o \
|
| 221 | alloc_repair.o \
|
| 222 | attr_repair.o \
|
| 223 | bmap_repair.o \
|
| 224 | cow_repair.o \
|
| 225 | dir_repair.o \
|
| 226 | dirtree_repair.o \
|
| 227 | findparent.o \
|
| 228 | fscounters_repair.o \
|
| 229 | ialloc_repair.o \
|
| 230 | inode_repair.o \
|
| 231 | newbt.o \
|
| 232 | nlinks_repair.o \
|
| 233 | orphanage.o \
|
| 234 | parent_repair.o \
|
| 235 | rcbag_btree.o \
|
| 236 | rcbag.o \
|
| 237 | reap.o \
|
| 238 | refcount_repair.o \
|
| 239 | repair.o \
|
| 240 | rmap_repair.o \
|
| 241 | symlink_repair.o \
|
| 242 | tempfile.o \
|
| 243 | )
|
| 244 |
|
| 245 | xfs-$(CONFIG_XFS_RT) += $(addprefix scrub/, \
|
| 246 | rtbitmap_repair.o \
|
| 247 | rtrefcount_repair.o \
|
| 248 | rtrmap_repair.o \
|
| 249 | rtsummary_repair.o \
|
| 250 | )
|
| 251 |
|
| 252 | xfs-$(CONFIG_XFS_QUOTA) += $(addprefix scrub/, \
|
| 253 | quota_repair.o \
|
| 254 | quotacheck_repair.o \
|
| 255 | )
|
| 256 | endif
|
| 257 | endif
|