diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-13 22:06:18 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-13 22:06:18 -0500 |
commit | a50cd2692617cfb796140a62c0082bce0a7306c7 (patch) | |
tree | 15a879237107bde586effdb46c2be41e4cd1af44 /fs/xfs/linux-2.6/xfs_super.c | |
parent | 416c6d5bcfe8ac2c65a955be62bc42d8b8d5b014 (diff) |
[XFS] Switch over from linvfs names for sb/quotactl operations for
consistent naming.
SGI-PV: 950556
SGI-Modid: xfs-linux-melb:xfs-kern:25382a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index cdbaea9e8573..352aa3d40c1f 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -59,8 +59,8 @@ | |||
59 | #include <linux/writeback.h> | 59 | #include <linux/writeback.h> |
60 | #include <linux/kthread.h> | 60 | #include <linux/kthread.h> |
61 | 61 | ||
62 | STATIC struct quotactl_ops linvfs_qops; | 62 | STATIC struct quotactl_ops xfs_quotactl_operations; |
63 | STATIC struct super_operations linvfs_sops; | 63 | STATIC struct super_operations xfs_super_operations; |
64 | STATIC kmem_zone_t *xfs_vnode_zone; | 64 | STATIC kmem_zone_t *xfs_vnode_zone; |
65 | STATIC kmem_zone_t *xfs_ioend_zone; | 65 | STATIC kmem_zone_t *xfs_ioend_zone; |
66 | mempool_t *xfs_ioend_pool; | 66 | mempool_t *xfs_ioend_pool; |
@@ -332,7 +332,7 @@ xfs_blkdev_issue_flush( | |||
332 | } | 332 | } |
333 | 333 | ||
334 | STATIC struct inode * | 334 | STATIC struct inode * |
335 | linvfs_alloc_inode( | 335 | xfs_fs_alloc_inode( |
336 | struct super_block *sb) | 336 | struct super_block *sb) |
337 | { | 337 | { |
338 | vnode_t *vp; | 338 | vnode_t *vp; |
@@ -344,14 +344,14 @@ linvfs_alloc_inode( | |||
344 | } | 344 | } |
345 | 345 | ||
346 | STATIC void | 346 | STATIC void |
347 | linvfs_destroy_inode( | 347 | xfs_fs_destroy_inode( |
348 | struct inode *inode) | 348 | struct inode *inode) |
349 | { | 349 | { |
350 | kmem_zone_free(xfs_vnode_zone, LINVFS_GET_VP(inode)); | 350 | kmem_zone_free(xfs_vnode_zone, LINVFS_GET_VP(inode)); |
351 | } | 351 | } |
352 | 352 | ||
353 | STATIC void | 353 | STATIC void |
354 | linvfs_inode_init_once( | 354 | xfs_fs_inode_init_once( |
355 | void *vnode, | 355 | void *vnode, |
356 | kmem_zone_t *zonep, | 356 | kmem_zone_t *zonep, |
357 | unsigned long flags) | 357 | unsigned long flags) |
@@ -367,7 +367,7 @@ xfs_init_zones(void) | |||
367 | xfs_vnode_zone = kmem_zone_init_flags(sizeof(vnode_t), "xfs_vnode_t", | 367 | xfs_vnode_zone = kmem_zone_init_flags(sizeof(vnode_t), "xfs_vnode_t", |
368 | KM_ZONE_HWALIGN | KM_ZONE_RECLAIM | | 368 | KM_ZONE_HWALIGN | KM_ZONE_RECLAIM | |
369 | KM_ZONE_SPREAD, | 369 | KM_ZONE_SPREAD, |
370 | linvfs_inode_init_once); | 370 | xfs_fs_inode_init_once); |
371 | if (!xfs_vnode_zone) | 371 | if (!xfs_vnode_zone) |
372 | goto out; | 372 | goto out; |
373 | 373 | ||
@@ -405,7 +405,7 @@ xfs_destroy_zones(void) | |||
405 | * since this is when the inode itself becomes flushable. | 405 | * since this is when the inode itself becomes flushable. |
406 | */ | 406 | */ |
407 | STATIC int | 407 | STATIC int |
408 | linvfs_write_inode( | 408 | xfs_fs_write_inode( |
409 | struct inode *inode, | 409 | struct inode *inode, |
410 | int sync) | 410 | int sync) |
411 | { | 411 | { |
@@ -429,13 +429,13 @@ linvfs_write_inode( | |||
429 | } | 429 | } |
430 | 430 | ||
431 | STATIC void | 431 | STATIC void |
432 | linvfs_clear_inode( | 432 | xfs_fs_clear_inode( |
433 | struct inode *inode) | 433 | struct inode *inode) |
434 | { | 434 | { |
435 | vnode_t *vp = LINVFS_GET_VP(inode); | 435 | vnode_t *vp = LINVFS_GET_VP(inode); |
436 | int error, cache; | 436 | int error, cache; |
437 | 437 | ||
438 | vn_trace_entry(vp, "clear_inode", (inst_t *)__return_address); | 438 | vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address); |
439 | 439 | ||
440 | XFS_STATS_INC(vn_rele); | 440 | XFS_STATS_INC(vn_rele); |
441 | XFS_STATS_INC(vn_remove); | 441 | XFS_STATS_INC(vn_remove); |
@@ -608,7 +608,7 @@ xfssyncd( | |||
608 | } | 608 | } |
609 | 609 | ||
610 | STATIC int | 610 | STATIC int |
611 | linvfs_start_syncd( | 611 | xfs_fs_start_syncd( |
612 | vfs_t *vfsp) | 612 | vfs_t *vfsp) |
613 | { | 613 | { |
614 | vfsp->vfs_sync_work.w_syncer = vfs_sync_worker; | 614 | vfsp->vfs_sync_work.w_syncer = vfs_sync_worker; |
@@ -620,20 +620,20 @@ linvfs_start_syncd( | |||
620 | } | 620 | } |
621 | 621 | ||
622 | STATIC void | 622 | STATIC void |
623 | linvfs_stop_syncd( | 623 | xfs_fs_stop_syncd( |
624 | vfs_t *vfsp) | 624 | vfs_t *vfsp) |
625 | { | 625 | { |
626 | kthread_stop(vfsp->vfs_sync_task); | 626 | kthread_stop(vfsp->vfs_sync_task); |
627 | } | 627 | } |
628 | 628 | ||
629 | STATIC void | 629 | STATIC void |
630 | linvfs_put_super( | 630 | xfs_fs_put_super( |
631 | struct super_block *sb) | 631 | struct super_block *sb) |
632 | { | 632 | { |
633 | vfs_t *vfsp = LINVFS_GET_VFS(sb); | 633 | vfs_t *vfsp = LINVFS_GET_VFS(sb); |
634 | int error; | 634 | int error; |
635 | 635 | ||
636 | linvfs_stop_syncd(vfsp); | 636 | xfs_fs_stop_syncd(vfsp); |
637 | VFS_SYNC(vfsp, SYNC_ATTR|SYNC_DELWRI, NULL, error); | 637 | VFS_SYNC(vfsp, SYNC_ATTR|SYNC_DELWRI, NULL, error); |
638 | if (!error) | 638 | if (!error) |
639 | VFS_UNMOUNT(vfsp, 0, NULL, error); | 639 | VFS_UNMOUNT(vfsp, 0, NULL, error); |
@@ -647,7 +647,7 @@ linvfs_put_super( | |||
647 | } | 647 | } |
648 | 648 | ||
649 | STATIC void | 649 | STATIC void |
650 | linvfs_write_super( | 650 | xfs_fs_write_super( |
651 | struct super_block *sb) | 651 | struct super_block *sb) |
652 | { | 652 | { |
653 | vfs_t *vfsp = LINVFS_GET_VFS(sb); | 653 | vfs_t *vfsp = LINVFS_GET_VFS(sb); |
@@ -663,7 +663,7 @@ linvfs_write_super( | |||
663 | } | 663 | } |
664 | 664 | ||
665 | STATIC int | 665 | STATIC int |
666 | linvfs_sync_super( | 666 | xfs_fs_sync_super( |
667 | struct super_block *sb, | 667 | struct super_block *sb, |
668 | int wait) | 668 | int wait) |
669 | { | 669 | { |
@@ -702,7 +702,7 @@ linvfs_sync_super( | |||
702 | } | 702 | } |
703 | 703 | ||
704 | STATIC int | 704 | STATIC int |
705 | linvfs_statfs( | 705 | xfs_fs_statfs( |
706 | struct super_block *sb, | 706 | struct super_block *sb, |
707 | struct kstatfs *statp) | 707 | struct kstatfs *statp) |
708 | { | 708 | { |
@@ -714,7 +714,7 @@ linvfs_statfs( | |||
714 | } | 714 | } |
715 | 715 | ||
716 | STATIC int | 716 | STATIC int |
717 | linvfs_remount( | 717 | xfs_fs_remount( |
718 | struct super_block *sb, | 718 | struct super_block *sb, |
719 | int *flags, | 719 | int *flags, |
720 | char *options) | 720 | char *options) |
@@ -731,14 +731,14 @@ linvfs_remount( | |||
731 | } | 731 | } |
732 | 732 | ||
733 | STATIC void | 733 | STATIC void |
734 | linvfs_freeze_fs( | 734 | xfs_fs_lockfs( |
735 | struct super_block *sb) | 735 | struct super_block *sb) |
736 | { | 736 | { |
737 | VFS_FREEZE(LINVFS_GET_VFS(sb)); | 737 | VFS_FREEZE(LINVFS_GET_VFS(sb)); |
738 | } | 738 | } |
739 | 739 | ||
740 | STATIC int | 740 | STATIC int |
741 | linvfs_show_options( | 741 | xfs_fs_show_options( |
742 | struct seq_file *m, | 742 | struct seq_file *m, |
743 | struct vfsmount *mnt) | 743 | struct vfsmount *mnt) |
744 | { | 744 | { |
@@ -750,7 +750,7 @@ linvfs_show_options( | |||
750 | } | 750 | } |
751 | 751 | ||
752 | STATIC int | 752 | STATIC int |
753 | linvfs_quotasync( | 753 | xfs_fs_quotasync( |
754 | struct super_block *sb, | 754 | struct super_block *sb, |
755 | int type) | 755 | int type) |
756 | { | 756 | { |
@@ -762,7 +762,7 @@ linvfs_quotasync( | |||
762 | } | 762 | } |
763 | 763 | ||
764 | STATIC int | 764 | STATIC int |
765 | linvfs_getxstate( | 765 | xfs_fs_getxstate( |
766 | struct super_block *sb, | 766 | struct super_block *sb, |
767 | struct fs_quota_stat *fqs) | 767 | struct fs_quota_stat *fqs) |
768 | { | 768 | { |
@@ -774,7 +774,7 @@ linvfs_getxstate( | |||
774 | } | 774 | } |
775 | 775 | ||
776 | STATIC int | 776 | STATIC int |
777 | linvfs_setxstate( | 777 | xfs_fs_setxstate( |
778 | struct super_block *sb, | 778 | struct super_block *sb, |
779 | unsigned int flags, | 779 | unsigned int flags, |
780 | int op) | 780 | int op) |
@@ -787,7 +787,7 @@ linvfs_setxstate( | |||
787 | } | 787 | } |
788 | 788 | ||
789 | STATIC int | 789 | STATIC int |
790 | linvfs_getxquota( | 790 | xfs_fs_getxquota( |
791 | struct super_block *sb, | 791 | struct super_block *sb, |
792 | int type, | 792 | int type, |
793 | qid_t id, | 793 | qid_t id, |
@@ -803,7 +803,7 @@ linvfs_getxquota( | |||
803 | } | 803 | } |
804 | 804 | ||
805 | STATIC int | 805 | STATIC int |
806 | linvfs_setxquota( | 806 | xfs_fs_setxquota( |
807 | struct super_block *sb, | 807 | struct super_block *sb, |
808 | int type, | 808 | int type, |
809 | qid_t id, | 809 | qid_t id, |
@@ -819,7 +819,7 @@ linvfs_setxquota( | |||
819 | } | 819 | } |
820 | 820 | ||
821 | STATIC int | 821 | STATIC int |
822 | linvfs_fill_super( | 822 | xfs_fs_fill_super( |
823 | struct super_block *sb, | 823 | struct super_block *sb, |
824 | void *data, | 824 | void *data, |
825 | int silent) | 825 | int silent) |
@@ -844,10 +844,10 @@ linvfs_fill_super( | |||
844 | 844 | ||
845 | sb_min_blocksize(sb, BBSIZE); | 845 | sb_min_blocksize(sb, BBSIZE); |
846 | #ifdef CONFIG_XFS_EXPORT | 846 | #ifdef CONFIG_XFS_EXPORT |
847 | sb->s_export_op = &linvfs_export_ops; | 847 | sb->s_export_op = &xfs_export_operations; |
848 | #endif | 848 | #endif |
849 | sb->s_qcop = &linvfs_qops; | 849 | sb->s_qcop = &xfs_quotactl_operations; |
850 | sb->s_op = &linvfs_sops; | 850 | sb->s_op = &xfs_super_operations; |
851 | 851 | ||
852 | VFS_MOUNT(vfsp, args, NULL, error); | 852 | VFS_MOUNT(vfsp, args, NULL, error); |
853 | if (error) { | 853 | if (error) { |
@@ -880,7 +880,7 @@ linvfs_fill_super( | |||
880 | error = EINVAL; | 880 | error = EINVAL; |
881 | goto fail_vnrele; | 881 | goto fail_vnrele; |
882 | } | 882 | } |
883 | if ((error = linvfs_start_syncd(vfsp))) | 883 | if ((error = xfs_fs_start_syncd(vfsp))) |
884 | goto fail_vnrele; | 884 | goto fail_vnrele; |
885 | vn_trace_exit(rootvp, __FUNCTION__, (inst_t *)__return_address); | 885 | vn_trace_exit(rootvp, __FUNCTION__, (inst_t *)__return_address); |
886 | 886 | ||
@@ -905,41 +905,41 @@ fail_vfsop: | |||
905 | } | 905 | } |
906 | 906 | ||
907 | STATIC struct super_block * | 907 | STATIC struct super_block * |
908 | linvfs_get_sb( | 908 | xfs_fs_get_sb( |
909 | struct file_system_type *fs_type, | 909 | struct file_system_type *fs_type, |
910 | int flags, | 910 | int flags, |
911 | const char *dev_name, | 911 | const char *dev_name, |
912 | void *data) | 912 | void *data) |
913 | { | 913 | { |
914 | return get_sb_bdev(fs_type, flags, dev_name, data, linvfs_fill_super); | 914 | return get_sb_bdev(fs_type, flags, dev_name, data, xfs_fs_fill_super); |
915 | } | 915 | } |
916 | 916 | ||
917 | STATIC struct super_operations linvfs_sops = { | 917 | STATIC struct super_operations xfs_super_operations = { |
918 | .alloc_inode = linvfs_alloc_inode, | 918 | .alloc_inode = xfs_fs_alloc_inode, |
919 | .destroy_inode = linvfs_destroy_inode, | 919 | .destroy_inode = xfs_fs_destroy_inode, |
920 | .write_inode = linvfs_write_inode, | 920 | .write_inode = xfs_fs_write_inode, |
921 | .clear_inode = linvfs_clear_inode, | 921 | .clear_inode = xfs_fs_clear_inode, |
922 | .put_super = linvfs_put_super, | 922 | .put_super = xfs_fs_put_super, |
923 | .write_super = linvfs_write_super, | 923 | .write_super = xfs_fs_write_super, |
924 | .sync_fs = linvfs_sync_super, | 924 | .sync_fs = xfs_fs_sync_super, |
925 | .write_super_lockfs = linvfs_freeze_fs, | 925 | .write_super_lockfs = xfs_fs_lockfs, |
926 | .statfs = linvfs_statfs, | 926 | .statfs = xfs_fs_statfs, |
927 | .remount_fs = linvfs_remount, | 927 | .remount_fs = xfs_fs_remount, |
928 | .show_options = linvfs_show_options, | 928 | .show_options = xfs_fs_show_options, |
929 | }; | 929 | }; |
930 | 930 | ||
931 | STATIC struct quotactl_ops linvfs_qops = { | 931 | STATIC struct quotactl_ops xfs_quotactl_operations = { |
932 | .quota_sync = linvfs_quotasync, | 932 | .quota_sync = xfs_fs_quotasync, |
933 | .get_xstate = linvfs_getxstate, | 933 | .get_xstate = xfs_fs_getxstate, |
934 | .set_xstate = linvfs_setxstate, | 934 | .set_xstate = xfs_fs_setxstate, |
935 | .get_xquota = linvfs_getxquota, | 935 | .get_xquota = xfs_fs_getxquota, |
936 | .set_xquota = linvfs_setxquota, | 936 | .set_xquota = xfs_fs_setxquota, |
937 | }; | 937 | }; |
938 | 938 | ||
939 | STATIC struct file_system_type xfs_fs_type = { | 939 | STATIC struct file_system_type xfs_fs_type = { |
940 | .owner = THIS_MODULE, | 940 | .owner = THIS_MODULE, |
941 | .name = "xfs", | 941 | .name = "xfs", |
942 | .get_sb = linvfs_get_sb, | 942 | .get_sb = xfs_fs_get_sb, |
943 | .kill_sb = kill_block_super, | 943 | .kill_sb = kill_block_super, |
944 | .fs_flags = FS_REQUIRES_DEV, | 944 | .fs_flags = FS_REQUIRES_DEV, |
945 | }; | 945 | }; |