فهرست منبع

xfs: remove subdirectories

Use the move from Linux 2.6 to Linux 3.x as an excuse to kill the
annoying subdirectories in the XFS source code.  Besides the large
amount of file rename the only changes are to the Makefile, a few
files including headers with the subdirectory prefix, and the binary
sysctl compat code that includes a header under fs/xfs/ from
kernel/.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Christoph Hellwig 14 سال پیش
والد
کامیت
c59d87c460
55فایلهای تغییر یافته به همراه58 افزوده شده و 63 حذف شده
  1. 56 61
      fs/xfs/Makefile
  2. 0 0
      fs/xfs/kmem.c
  3. 0 0
      fs/xfs/kmem.h
  4. 0 0
      fs/xfs/mrlock.h
  5. 0 0
      fs/xfs/time.h
  6. 0 0
      fs/xfs/uuid.c
  7. 0 0
      fs/xfs/uuid.h
  8. 0 0
      fs/xfs/xfs_acl.c
  9. 0 0
      fs/xfs/xfs_aops.c
  10. 0 0
      fs/xfs/xfs_aops.h
  11. 0 0
      fs/xfs/xfs_buf.c
  12. 0 0
      fs/xfs/xfs_buf.h
  13. 0 0
      fs/xfs/xfs_discard.c
  14. 0 0
      fs/xfs/xfs_discard.h
  15. 0 0
      fs/xfs/xfs_dquot.c
  16. 0 0
      fs/xfs/xfs_dquot.h
  17. 0 0
      fs/xfs/xfs_dquot_item.c
  18. 0 0
      fs/xfs/xfs_dquot_item.h
  19. 0 0
      fs/xfs/xfs_export.c
  20. 0 0
      fs/xfs/xfs_export.h
  21. 0 0
      fs/xfs/xfs_file.c
  22. 0 0
      fs/xfs/xfs_fs_subr.c
  23. 0 0
      fs/xfs/xfs_globals.c
  24. 0 0
      fs/xfs/xfs_ioctl.c
  25. 0 0
      fs/xfs/xfs_ioctl.h
  26. 0 0
      fs/xfs/xfs_ioctl32.c
  27. 0 0
      fs/xfs/xfs_ioctl32.h
  28. 0 0
      fs/xfs/xfs_iops.c
  29. 0 0
      fs/xfs/xfs_iops.h
  30. 0 0
      fs/xfs/xfs_linux.h
  31. 0 0
      fs/xfs/xfs_message.c
  32. 0 0
      fs/xfs/xfs_message.h
  33. 0 0
      fs/xfs/xfs_qm.c
  34. 0 0
      fs/xfs/xfs_qm.h
  35. 0 0
      fs/xfs/xfs_qm_bhv.c
  36. 0 0
      fs/xfs/xfs_qm_stats.c
  37. 0 0
      fs/xfs/xfs_qm_stats.h
  38. 0 0
      fs/xfs/xfs_qm_syscalls.c
  39. 0 0
      fs/xfs/xfs_quota_priv.h
  40. 0 0
      fs/xfs/xfs_quotaops.c
  41. 0 0
      fs/xfs/xfs_stats.c
  42. 0 0
      fs/xfs/xfs_stats.h
  43. 0 0
      fs/xfs/xfs_super.c
  44. 0 0
      fs/xfs/xfs_super.h
  45. 0 0
      fs/xfs/xfs_sync.c
  46. 0 0
      fs/xfs/xfs_sync.h
  47. 0 0
      fs/xfs/xfs_sysctl.c
  48. 0 0
      fs/xfs/xfs_sysctl.h
  49. 0 0
      fs/xfs/xfs_trace.c
  50. 0 0
      fs/xfs/xfs_trace.h
  51. 0 0
      fs/xfs/xfs_trans_dquot.c
  52. 0 0
      fs/xfs/xfs_vnode.h
  53. 0 0
      fs/xfs/xfs_xattr.c
  54. 1 1
      kernel/sysctl_binary.c
  55. 1 1
      kernel/sysctl_check.c

+ 56 - 61
fs/xfs/Makefile

@@ -16,44 +16,51 @@
 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
 
-ccflags-y := -I$(src) -I$(src)/linux-2.6 -I$(src)/quota -I$(src)/support
 ccflags-$(CONFIG_XFS_DEBUG) += -g
 
-XFS_LINUX := linux-2.6
-
 obj-$(CONFIG_XFS_FS)		+= xfs.o
 
-xfs-y				+= linux-2.6/xfs_trace.o
-
-xfs-$(CONFIG_XFS_QUOTA)		+= $(addprefix quota/, \
-				   xfs_dquot.o \
-				   xfs_dquot_item.o \
-				   xfs_trans_dquot.o \
-				   xfs_qm_syscalls.o \
-				   xfs_qm_bhv.o \
-				   xfs_qm.o)
-xfs-$(CONFIG_XFS_QUOTA)		+= linux-2.6/xfs_quotaops.o
-
-ifeq ($(CONFIG_XFS_QUOTA),y)
-xfs-$(CONFIG_PROC_FS)		+= quota/xfs_qm_stats.o
-endif
-
-xfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
-xfs-$(CONFIG_XFS_POSIX_ACL)	+= $(XFS_LINUX)/xfs_acl.o
-xfs-$(CONFIG_PROC_FS)		+= $(XFS_LINUX)/xfs_stats.o
-xfs-$(CONFIG_SYSCTL)		+= $(XFS_LINUX)/xfs_sysctl.o
-xfs-$(CONFIG_COMPAT)		+= $(XFS_LINUX)/xfs_ioctl32.o
+# this one should be compiled first, as the tracing macros can easily blow up
+xfs-y				+= xfs_trace.o
 
+# highlevel code
+xfs-y				+= xfs_aops.o \
+				   xfs_bit.o \
+				   xfs_buf.o \
+				   xfs_dfrag.o \
+				   xfs_discard.o \
+				   xfs_error.o \
+				   xfs_export.o \
+				   xfs_file.o \
+				   xfs_filestream.o \
+				   xfs_fsops.o \
+				   xfs_fs_subr.o \
+				   xfs_globals.o \
+				   xfs_iget.o \
+				   xfs_ioctl.o \
+				   xfs_iomap.o \
+				   xfs_iops.o \
+				   xfs_itable.o \
+				   xfs_message.o \
+				   xfs_mru_cache.o \
+				   xfs_super.o \
+				   xfs_sync.o \
+				   xfs_xattr.o \
+				   xfs_rename.o \
+				   xfs_rw.o \
+				   xfs_utils.o \
+				   xfs_vnodeops.o \
+				   kmem.o \
+				   uuid.o
 
+# code shared with libxfs
 xfs-y				+= xfs_alloc.o \
 				   xfs_alloc_btree.o \
 				   xfs_attr.o \
 				   xfs_attr_leaf.o \
-				   xfs_bit.o \
 				   xfs_bmap.o \
 				   xfs_bmap_btree.o \
 				   xfs_btree.o \
-				   xfs_buf_item.o \
 				   xfs_da_btree.o \
 				   xfs_dir2.o \
 				   xfs_dir2_block.o \
@@ -61,49 +68,37 @@ xfs-y				+= xfs_alloc.o \
 				   xfs_dir2_leaf.o \
 				   xfs_dir2_node.o \
 				   xfs_dir2_sf.o \
-				   xfs_error.o \
-				   xfs_extfree_item.o \
-				   xfs_filestream.o \
-				   xfs_fsops.o \
 				   xfs_ialloc.o \
 				   xfs_ialloc_btree.o \
-				   xfs_iget.o \
 				   xfs_inode.o \
-				   xfs_inode_item.o \
-				   xfs_iomap.o \
-				   xfs_itable.o \
-				   xfs_dfrag.o \
-				   xfs_log.o \
-				   xfs_log_cil.o \
 				   xfs_log_recover.o \
 				   xfs_mount.o \
-				   xfs_mru_cache.o \
-				   xfs_rename.o \
-				   xfs_trans.o \
+				   xfs_trans.o
+
+# low-level transaction/log code
+xfs-y				+= xfs_log.o \
+				   xfs_log_cil.o \
+				   xfs_buf_item.o \
+				   xfs_extfree_item.o \
+				   xfs_inode_item.o \
 				   xfs_trans_ail.o \
 				   xfs_trans_buf.o \
 				   xfs_trans_extfree.o \
 				   xfs_trans_inode.o \
-				   xfs_utils.o \
-				   xfs_vnodeops.o \
-				   xfs_rw.o
-
-# Objects in linux/
-xfs-y				+= $(addprefix $(XFS_LINUX)/, \
-				   kmem.o \
-				   xfs_aops.o \
-				   xfs_buf.o \
-				   xfs_discard.o \
-				   xfs_export.o \
-				   xfs_file.o \
-				   xfs_fs_subr.o \
-				   xfs_globals.o \
-				   xfs_ioctl.o \
-				   xfs_iops.o \
-				   xfs_message.o \
-				   xfs_super.o \
-				   xfs_sync.o \
-				   xfs_xattr.o)
 
-# Objects in support/
-xfs-y				+= support/uuid.o
+# optional features
+xfs-$(CONFIG_XFS_QUOTA)		+= xfs_dquot.o \
+				   xfs_dquot_item.o \
+				   xfs_trans_dquot.o \
+				   xfs_qm_syscalls.o \
+				   xfs_qm_bhv.o \
+				   xfs_qm.o \
+				   xfs_quotaops.o
+ifeq ($(CONFIG_XFS_QUOTA),y)
+xfs-$(CONFIG_PROC_FS)		+= xfs_qm_stats.o
+endif
+xfs-$(CONFIG_XFS_RT)		+= xfs_rtalloc.o
+xfs-$(CONFIG_XFS_POSIX_ACL)	+= xfs_acl.o
+xfs-$(CONFIG_PROC_FS)		+= xfs_stats.o
+xfs-$(CONFIG_SYSCTL)		+= xfs_sysctl.o
+xfs-$(CONFIG_COMPAT)		+= xfs_ioctl32.o

+ 0 - 0
fs/xfs/linux-2.6/kmem.c → fs/xfs/kmem.c


+ 0 - 0
fs/xfs/linux-2.6/kmem.h → fs/xfs/kmem.h


+ 0 - 0
fs/xfs/linux-2.6/mrlock.h → fs/xfs/mrlock.h


+ 0 - 0
fs/xfs/linux-2.6/time.h → fs/xfs/time.h


+ 0 - 0
fs/xfs/support/uuid.c → fs/xfs/uuid.c


+ 0 - 0
fs/xfs/support/uuid.h → fs/xfs/uuid.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_acl.c → fs/xfs/xfs_acl.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_aops.c → fs/xfs/xfs_aops.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_aops.h → fs/xfs/xfs_aops.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_buf.c → fs/xfs/xfs_buf.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_buf.h → fs/xfs/xfs_buf.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_discard.c → fs/xfs/xfs_discard.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_discard.h → fs/xfs/xfs_discard.h


+ 0 - 0
fs/xfs/quota/xfs_dquot.c → fs/xfs/xfs_dquot.c


+ 0 - 0
fs/xfs/quota/xfs_dquot.h → fs/xfs/xfs_dquot.h


+ 0 - 0
fs/xfs/quota/xfs_dquot_item.c → fs/xfs/xfs_dquot_item.c


+ 0 - 0
fs/xfs/quota/xfs_dquot_item.h → fs/xfs/xfs_dquot_item.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_export.c → fs/xfs/xfs_export.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_export.h → fs/xfs/xfs_export.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_file.c → fs/xfs/xfs_file.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_fs_subr.c → fs/xfs/xfs_fs_subr.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_globals.c → fs/xfs/xfs_globals.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_ioctl.c → fs/xfs/xfs_ioctl.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_ioctl.h → fs/xfs/xfs_ioctl.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_ioctl32.c → fs/xfs/xfs_ioctl32.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_ioctl32.h → fs/xfs/xfs_ioctl32.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_iops.c → fs/xfs/xfs_iops.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_iops.h → fs/xfs/xfs_iops.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_linux.h → fs/xfs/xfs_linux.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_message.c → fs/xfs/xfs_message.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_message.h → fs/xfs/xfs_message.h


+ 0 - 0
fs/xfs/quota/xfs_qm.c → fs/xfs/xfs_qm.c


+ 0 - 0
fs/xfs/quota/xfs_qm.h → fs/xfs/xfs_qm.h


+ 0 - 0
fs/xfs/quota/xfs_qm_bhv.c → fs/xfs/xfs_qm_bhv.c


+ 0 - 0
fs/xfs/quota/xfs_qm_stats.c → fs/xfs/xfs_qm_stats.c


+ 0 - 0
fs/xfs/quota/xfs_qm_stats.h → fs/xfs/xfs_qm_stats.h


+ 0 - 0
fs/xfs/quota/xfs_qm_syscalls.c → fs/xfs/xfs_qm_syscalls.c


+ 0 - 0
fs/xfs/quota/xfs_quota_priv.h → fs/xfs/xfs_quota_priv.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_quotaops.c → fs/xfs/xfs_quotaops.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_stats.c → fs/xfs/xfs_stats.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_stats.h → fs/xfs/xfs_stats.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_super.c → fs/xfs/xfs_super.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_super.h → fs/xfs/xfs_super.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_sync.c → fs/xfs/xfs_sync.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_sync.h → fs/xfs/xfs_sync.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_sysctl.c → fs/xfs/xfs_sysctl.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_sysctl.h → fs/xfs/xfs_sysctl.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_trace.c → fs/xfs/xfs_trace.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_trace.h → fs/xfs/xfs_trace.h


+ 0 - 0
fs/xfs/quota/xfs_trans_dquot.c → fs/xfs/xfs_trans_dquot.c


+ 0 - 0
fs/xfs/linux-2.6/xfs_vnode.h → fs/xfs/xfs_vnode.h


+ 0 - 0
fs/xfs/linux-2.6/xfs_xattr.c → fs/xfs/xfs_xattr.c


+ 1 - 1
kernel/sysctl_binary.c

@@ -1,6 +1,6 @@
 #include <linux/stat.h>
 #include <linux/sysctl.h>
-#include "../fs/xfs/linux-2.6/xfs_sysctl.h"
+#include "../fs/xfs/xfs_sysctl.h"
 #include <linux/sunrpc/debug.h>
 #include <linux/string.h>
 #include <net/ip_vs.h>

+ 1 - 1
kernel/sysctl_check.c

@@ -1,6 +1,6 @@
 #include <linux/stat.h>
 #include <linux/sysctl.h>
-#include "../fs/xfs/linux-2.6/xfs_sysctl.h"
+#include "../fs/xfs/xfs_sysctl.h"
 #include <linux/sunrpc/debug.h>
 #include <linux/string.h>
 #include <net/ip_vs.h>