aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-03-13 22:06:18 -0500
committerNathan Scott <nathans@sgi.com>2006-03-13 22:06:18 -0500
commita50cd2692617cfb796140a62c0082bce0a7306c7 (patch)
tree15a879237107bde586effdb46c2be41e4cd1af44
parent416c6d5bcfe8ac2c65a955be62bc42d8b8d5b014 (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>
-rw-r--r--fs/xfs/linux-2.6/xfs_export.c18
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl32.c10
-rw-r--r--fs/xfs/linux-2.6/xfs_ioctl32.h4
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c104
-rw-r--r--fs/xfs/linux-2.6/xfs_super.h2
5 files changed, 69 insertions, 69 deletions
diff --git a/fs/xfs/linux-2.6/xfs_export.c b/fs/xfs/linux-2.6/xfs_export.c
index 53ed99112365..391c1353cd42 100644
--- a/fs/xfs/linux-2.6/xfs_export.c
+++ b/fs/xfs/linux-2.6/xfs_export.c
@@ -39,7 +39,7 @@ STATIC struct dentry dotdot = { .d_name.name = "..", .d_name.len = 2, };
39 */ 39 */
40 40
41STATIC struct dentry * 41STATIC struct dentry *
42linvfs_decode_fh( 42xfs_fs_decode_fh(
43 struct super_block *sb, 43 struct super_block *sb,
44 __u32 *fh, 44 __u32 *fh,
45 int fh_len, 45 int fh_len,
@@ -85,7 +85,7 @@ linvfs_decode_fh(
85 85
86 86
87STATIC int 87STATIC int
88linvfs_encode_fh( 88xfs_fs_encode_fh(
89 struct dentry *dentry, 89 struct dentry *dentry,
90 __u32 *fh, 90 __u32 *fh,
91 int *max_len, 91 int *max_len,
@@ -132,7 +132,7 @@ linvfs_encode_fh(
132} 132}
133 133
134STATIC struct dentry * 134STATIC struct dentry *
135linvfs_get_dentry( 135xfs_fs_get_dentry(
136 struct super_block *sb, 136 struct super_block *sb,
137 void *data) 137 void *data)
138{ 138{
@@ -156,7 +156,7 @@ linvfs_get_dentry(
156} 156}
157 157
158STATIC struct dentry * 158STATIC struct dentry *
159linvfs_get_parent( 159xfs_fs_get_parent(
160 struct dentry *child) 160 struct dentry *child)
161{ 161{
162 int error; 162 int error;
@@ -177,9 +177,9 @@ linvfs_get_parent(
177 return parent; 177 return parent;
178} 178}
179 179
180struct export_operations linvfs_export_ops = { 180struct export_operations xfs_export_operations = {
181 .decode_fh = linvfs_decode_fh, 181 .decode_fh = xfs_fs_decode_fh,
182 .encode_fh = linvfs_encode_fh, 182 .encode_fh = xfs_fs_encode_fh,
183 .get_parent = linvfs_get_parent, 183 .get_parent = xfs_fs_get_parent,
184 .get_dentry = linvfs_get_dentry, 184 .get_dentry = xfs_fs_get_dentry,
185}; 185};
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.c b/fs/xfs/linux-2.6/xfs_ioctl32.c
index a7c9ba1a9f7b..e9da0bde36a6 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl32.c
+++ b/fs/xfs/linux-2.6/xfs_ioctl32.c
@@ -107,7 +107,7 @@ xfs_ioctl32_bulkstat(
107#endif 107#endif
108 108
109STATIC long 109STATIC long
110__linvfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg) 110xfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)
111{ 111{
112 int error; 112 int error;
113 struct inode *inode = f->f_dentry->d_inode; 113 struct inode *inode = f->f_dentry->d_inode;
@@ -196,19 +196,19 @@ __linvfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)
196} 196}
197 197
198long 198long
199linvfs_compat_ioctl( 199xfs_file_compat_ioctl(
200 struct file *f, 200 struct file *f,
201 unsigned cmd, 201 unsigned cmd,
202 unsigned long arg) 202 unsigned long arg)
203{ 203{
204 return __linvfs_compat_ioctl(0, f, cmd, arg); 204 return xfs_compat_ioctl(0, f, cmd, arg);
205} 205}
206 206
207long 207long
208linvfs_compat_invis_ioctl( 208xfs_file_compat_invis_ioctl(
209 struct file *f, 209 struct file *f,
210 unsigned cmd, 210 unsigned cmd,
211 unsigned long arg) 211 unsigned long arg)
212{ 212{
213 return __linvfs_compat_ioctl(IO_INVIS, f, cmd, arg); 213 return xfs_compat_ioctl(IO_INVIS, f, cmd, arg);
214} 214}
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.h b/fs/xfs/linux-2.6/xfs_ioctl32.h
index 011c273bec50..8bdb33ffc032 100644
--- a/fs/xfs/linux-2.6/xfs_ioctl32.h
+++ b/fs/xfs/linux-2.6/xfs_ioctl32.h
@@ -18,7 +18,7 @@
18#ifndef __XFS_IOCTL32_H__ 18#ifndef __XFS_IOCTL32_H__
19#define __XFS_IOCTL32_H__ 19#define __XFS_IOCTL32_H__
20 20
21extern long linvfs_compat_ioctl(struct file *, unsigned, unsigned long); 21extern long xfs_file_compat_ioctl(struct file *, unsigned, unsigned long);
22extern long linvfs_compat_invis_ioctl(struct file *f, unsigned, unsigned long); 22extern long xfs_file_compat_invis_ioctl(struct file *, unsigned, unsigned);
23 23
24#endif /* __XFS_IOCTL32_H__ */ 24#endif /* __XFS_IOCTL32_H__ */
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
62STATIC struct quotactl_ops linvfs_qops; 62STATIC struct quotactl_ops xfs_quotactl_operations;
63STATIC struct super_operations linvfs_sops; 63STATIC struct super_operations xfs_super_operations;
64STATIC kmem_zone_t *xfs_vnode_zone; 64STATIC kmem_zone_t *xfs_vnode_zone;
65STATIC kmem_zone_t *xfs_ioend_zone; 65STATIC kmem_zone_t *xfs_ioend_zone;
66mempool_t *xfs_ioend_pool; 66mempool_t *xfs_ioend_pool;
@@ -332,7 +332,7 @@ xfs_blkdev_issue_flush(
332} 332}
333 333
334STATIC struct inode * 334STATIC struct inode *
335linvfs_alloc_inode( 335xfs_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
346STATIC void 346STATIC void
347linvfs_destroy_inode( 347xfs_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
353STATIC void 353STATIC void
354linvfs_inode_init_once( 354xfs_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 */
407STATIC int 407STATIC int
408linvfs_write_inode( 408xfs_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
431STATIC void 431STATIC void
432linvfs_clear_inode( 432xfs_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
610STATIC int 610STATIC int
611linvfs_start_syncd( 611xfs_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
622STATIC void 622STATIC void
623linvfs_stop_syncd( 623xfs_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
629STATIC void 629STATIC void
630linvfs_put_super( 630xfs_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
649STATIC void 649STATIC void
650linvfs_write_super( 650xfs_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
665STATIC int 665STATIC int
666linvfs_sync_super( 666xfs_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
704STATIC int 704STATIC int
705linvfs_statfs( 705xfs_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
716STATIC int 716STATIC int
717linvfs_remount( 717xfs_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
733STATIC void 733STATIC void
734linvfs_freeze_fs( 734xfs_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
740STATIC int 740STATIC int
741linvfs_show_options( 741xfs_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
752STATIC int 752STATIC int
753linvfs_quotasync( 753xfs_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
764STATIC int 764STATIC int
765linvfs_getxstate( 765xfs_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
776STATIC int 776STATIC int
777linvfs_setxstate( 777xfs_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
789STATIC int 789STATIC int
790linvfs_getxquota( 790xfs_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
805STATIC int 805STATIC int
806linvfs_setxquota( 806xfs_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
821STATIC int 821STATIC int
822linvfs_fill_super( 822xfs_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
907STATIC struct super_block * 907STATIC struct super_block *
908linvfs_get_sb( 908xfs_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
917STATIC struct super_operations linvfs_sops = { 917STATIC 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
931STATIC struct quotactl_ops linvfs_qops = { 931STATIC 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
939STATIC struct file_system_type xfs_fs_type = { 939STATIC 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};
diff --git a/fs/xfs/linux-2.6/xfs_super.h b/fs/xfs/linux-2.6/xfs_super.h
index df59408dca06..5e1b525cb1eb 100644
--- a/fs/xfs/linux-2.6/xfs_super.h
+++ b/fs/xfs/linux-2.6/xfs_super.h
@@ -120,6 +120,6 @@ extern int xfs_blkdev_get(struct xfs_mount *, const char *,
120extern void xfs_blkdev_put(struct block_device *); 120extern void xfs_blkdev_put(struct block_device *);
121extern void xfs_blkdev_issue_flush(struct xfs_buftarg *); 121extern void xfs_blkdev_issue_flush(struct xfs_buftarg *);
122 122
123extern struct export_operations linvfs_export_ops; 123extern struct export_operations xfs_export_operations;
124 124
125#endif /* __XFS_SUPER_H__ */ 125#endif /* __XFS_SUPER_H__ */