diff --git a/fs/xfs/Makefile b/fs/xfs/Makefile index c21f43506661..4c5edf0df9a3 100644 --- a/fs/xfs/Makefile +++ b/fs/xfs/Makefile @@ -17,6 +17,7 @@ # ccflags-y += -I$(src) # needed for trace events +ccflags-y += -I$(src)/libxfs ccflags-$(CONFIG_XFS_DEBUG) += -g @@ -25,6 +26,11 @@ obj-$(CONFIG_XFS_FS) += xfs.o # this one should be compiled first, as the tracing macros can easily blow up xfs-y += xfs_trace.o +# build the libxfs code first +xfs-y += $(addprefix libxfs/, \ + xfs_sb.o \ + ) + # highlevel code xfs-y += xfs_aops.o \ xfs_attr_inactive.o \ @@ -82,7 +88,6 @@ xfs-y += xfs_alloc.o \ xfs_inode_buf.o \ xfs_log_recover.o \ xfs_log_rlimit.o \ - xfs_sb.o \ xfs_symlink_remote.o \ xfs_trans_resv.o diff --git a/fs/xfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c similarity index 100% rename from fs/xfs/xfs_sb.c rename to fs/xfs/libxfs/xfs_sb.c diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/libxfs/xfs_sb.h similarity index 100% rename from fs/xfs/xfs_sb.h rename to fs/xfs/libxfs/xfs_sb.h