diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-13 22:00:51 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-13 22:00:51 -0500 |
commit | 416c6d5bcfe8ac2c65a955be62bc42d8b8d5b014 (patch) | |
tree | bf8ef73d247c4e44db36d9c742a088e0c4330630 /fs/xfs/linux-2.6 | |
parent | 3562fd45658fbb696f4546479332d5249c3ad90f (diff) |
[XFS] Switch over from linvfs names for inode operations for consistent
naming.
SGI-PV: 950556
SGI-Modid: xfs-linux-melb:xfs-kern:25381a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 160 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.h | 6 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 8 |
3 files changed, 87 insertions, 87 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 52b02bd5c283..93b9e6e43f20 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -198,7 +198,7 @@ xfs_ichgtime_fast( | |||
198 | * Pull the link count and size up from the xfs inode to the linux inode | 198 | * Pull the link count and size up from the xfs inode to the linux inode |
199 | */ | 199 | */ |
200 | STATIC void | 200 | STATIC void |
201 | __linvfs_validate_fields( | 201 | xfs_validate_fields( |
202 | struct inode *ip, | 202 | struct inode *ip, |
203 | struct vattr *vattr) | 203 | struct vattr *vattr) |
204 | { | 204 | { |
@@ -224,7 +224,7 @@ __linvfs_validate_fields( | |||
224 | * inode, of course, such that log replay can't cause these to be lost). | 224 | * inode, of course, such that log replay can't cause these to be lost). |
225 | */ | 225 | */ |
226 | STATIC int | 226 | STATIC int |
227 | __linvfs_init_security( | 227 | xfs_init_security( |
228 | struct vnode *vp, | 228 | struct vnode *vp, |
229 | struct inode *dir) | 229 | struct inode *dir) |
230 | { | 230 | { |
@@ -257,13 +257,13 @@ __linvfs_init_security( | |||
257 | * XXX(hch): nfsd is broken, better fix it instead. | 257 | * XXX(hch): nfsd is broken, better fix it instead. |
258 | */ | 258 | */ |
259 | STATIC inline int | 259 | STATIC inline int |
260 | __linvfs_has_fs_struct(struct task_struct *task) | 260 | xfs_has_fs_struct(struct task_struct *task) |
261 | { | 261 | { |
262 | return (task->fs != init_task.fs); | 262 | return (task->fs != init_task.fs); |
263 | } | 263 | } |
264 | 264 | ||
265 | STATIC inline void | 265 | STATIC inline void |
266 | __linvfs_cleanup_inode( | 266 | xfs_cleanup_inode( |
267 | vnode_t *dvp, | 267 | vnode_t *dvp, |
268 | vnode_t *vp, | 268 | vnode_t *vp, |
269 | struct dentry *dentry, | 269 | struct dentry *dentry, |
@@ -274,7 +274,7 @@ __linvfs_cleanup_inode( | |||
274 | 274 | ||
275 | /* Oh, the horror. | 275 | /* Oh, the horror. |
276 | * If we can't add the ACL or we fail in | 276 | * If we can't add the ACL or we fail in |
277 | * linvfs_init_security we must back out. | 277 | * xfs_init_security we must back out. |
278 | * ENOSPC can hit here, among other things. | 278 | * ENOSPC can hit here, among other things. |
279 | */ | 279 | */ |
280 | teardown.d_inode = LINVFS_GET_IP(vp); | 280 | teardown.d_inode = LINVFS_GET_IP(vp); |
@@ -288,7 +288,7 @@ __linvfs_cleanup_inode( | |||
288 | } | 288 | } |
289 | 289 | ||
290 | STATIC int | 290 | STATIC int |
291 | linvfs_mknod( | 291 | xfs_vn_mknod( |
292 | struct inode *dir, | 292 | struct inode *dir, |
293 | struct dentry *dentry, | 293 | struct dentry *dentry, |
294 | int mode, | 294 | int mode, |
@@ -323,7 +323,7 @@ linvfs_mknod( | |||
323 | } | 323 | } |
324 | } | 324 | } |
325 | 325 | ||
326 | if (IS_POSIXACL(dir) && !default_acl && __linvfs_has_fs_struct(current)) | 326 | if (IS_POSIXACL(dir) && !default_acl && xfs_has_fs_struct(current)) |
327 | mode &= ~current->fs->umask; | 327 | mode &= ~current->fs->umask; |
328 | 328 | ||
329 | memset(vattr, 0, sizeof(*vattr)); | 329 | memset(vattr, 0, sizeof(*vattr)); |
@@ -347,9 +347,9 @@ linvfs_mknod( | |||
347 | } | 347 | } |
348 | 348 | ||
349 | if (unlikely(!error)) { | 349 | if (unlikely(!error)) { |
350 | error = __linvfs_init_security(vp, dir); | 350 | error = xfs_init_security(vp, dir); |
351 | if (error) | 351 | if (error) |
352 | __linvfs_cleanup_inode(dvp, vp, dentry, mode); | 352 | xfs_cleanup_inode(dvp, vp, dentry, mode); |
353 | } | 353 | } |
354 | 354 | ||
355 | if (unlikely(default_acl)) { | 355 | if (unlikely(default_acl)) { |
@@ -358,7 +358,7 @@ linvfs_mknod( | |||
358 | if (!error) | 358 | if (!error) |
359 | VMODIFY(vp); | 359 | VMODIFY(vp); |
360 | else | 360 | else |
361 | __linvfs_cleanup_inode(dvp, vp, dentry, mode); | 361 | xfs_cleanup_inode(dvp, vp, dentry, mode); |
362 | } | 362 | } |
363 | _ACL_FREE(default_acl); | 363 | _ACL_FREE(default_acl); |
364 | } | 364 | } |
@@ -370,35 +370,35 @@ linvfs_mknod( | |||
370 | if (S_ISCHR(mode) || S_ISBLK(mode)) | 370 | if (S_ISCHR(mode) || S_ISBLK(mode)) |
371 | ip->i_rdev = rdev; | 371 | ip->i_rdev = rdev; |
372 | else if (S_ISDIR(mode)) | 372 | else if (S_ISDIR(mode)) |
373 | __linvfs_validate_fields(ip, vattr); | 373 | xfs_validate_fields(ip, vattr); |
374 | d_instantiate(dentry, ip); | 374 | d_instantiate(dentry, ip); |
375 | __linvfs_validate_fields(dir, vattr); | 375 | xfs_validate_fields(dir, vattr); |
376 | } | 376 | } |
377 | kfree(vattr); | 377 | kfree(vattr); |
378 | return -error; | 378 | return -error; |
379 | } | 379 | } |
380 | 380 | ||
381 | STATIC int | 381 | STATIC int |
382 | linvfs_create( | 382 | xfs_vn_create( |
383 | struct inode *dir, | 383 | struct inode *dir, |
384 | struct dentry *dentry, | 384 | struct dentry *dentry, |
385 | int mode, | 385 | int mode, |
386 | struct nameidata *nd) | 386 | struct nameidata *nd) |
387 | { | 387 | { |
388 | return linvfs_mknod(dir, dentry, mode, 0); | 388 | return xfs_vn_mknod(dir, dentry, mode, 0); |
389 | } | 389 | } |
390 | 390 | ||
391 | STATIC int | 391 | STATIC int |
392 | linvfs_mkdir( | 392 | xfs_vn_mkdir( |
393 | struct inode *dir, | 393 | struct inode *dir, |
394 | struct dentry *dentry, | 394 | struct dentry *dentry, |
395 | int mode) | 395 | int mode) |
396 | { | 396 | { |
397 | return linvfs_mknod(dir, dentry, mode|S_IFDIR, 0); | 397 | return xfs_vn_mknod(dir, dentry, mode|S_IFDIR, 0); |
398 | } | 398 | } |
399 | 399 | ||
400 | STATIC struct dentry * | 400 | STATIC struct dentry * |
401 | linvfs_lookup( | 401 | xfs_vn_lookup( |
402 | struct inode *dir, | 402 | struct inode *dir, |
403 | struct dentry *dentry, | 403 | struct dentry *dentry, |
404 | struct nameidata *nd) | 404 | struct nameidata *nd) |
@@ -421,7 +421,7 @@ linvfs_lookup( | |||
421 | } | 421 | } |
422 | 422 | ||
423 | STATIC int | 423 | STATIC int |
424 | linvfs_link( | 424 | xfs_vn_link( |
425 | struct dentry *old_dentry, | 425 | struct dentry *old_dentry, |
426 | struct inode *dir, | 426 | struct inode *dir, |
427 | struct dentry *dentry) | 427 | struct dentry *dentry) |
@@ -447,7 +447,7 @@ linvfs_link( | |||
447 | if (likely(!error)) { | 447 | if (likely(!error)) { |
448 | VMODIFY(tdvp); | 448 | VMODIFY(tdvp); |
449 | VN_HOLD(vp); | 449 | VN_HOLD(vp); |
450 | __linvfs_validate_fields(ip, vattr); | 450 | xfs_validate_fields(ip, vattr); |
451 | d_instantiate(dentry, ip); | 451 | d_instantiate(dentry, ip); |
452 | } | 452 | } |
453 | kfree(vattr); | 453 | kfree(vattr); |
@@ -455,7 +455,7 @@ linvfs_link( | |||
455 | } | 455 | } |
456 | 456 | ||
457 | STATIC int | 457 | STATIC int |
458 | linvfs_unlink( | 458 | xfs_vn_unlink( |
459 | struct inode *dir, | 459 | struct inode *dir, |
460 | struct dentry *dentry) | 460 | struct dentry *dentry) |
461 | { | 461 | { |
@@ -473,15 +473,15 @@ linvfs_unlink( | |||
473 | 473 | ||
474 | VOP_REMOVE(dvp, dentry, NULL, error); | 474 | VOP_REMOVE(dvp, dentry, NULL, error); |
475 | if (likely(!error)) { | 475 | if (likely(!error)) { |
476 | __linvfs_validate_fields(dir, vattr); /* size needs update */ | 476 | xfs_validate_fields(dir, vattr); /* size needs update */ |
477 | __linvfs_validate_fields(inode, vattr); | 477 | xfs_validate_fields(inode, vattr); |
478 | } | 478 | } |
479 | kfree(vattr); | 479 | kfree(vattr); |
480 | return -error; | 480 | return -error; |
481 | } | 481 | } |
482 | 482 | ||
483 | STATIC int | 483 | STATIC int |
484 | linvfs_symlink( | 484 | xfs_vn_symlink( |
485 | struct inode *dir, | 485 | struct inode *dir, |
486 | struct dentry *dentry, | 486 | struct dentry *dentry, |
487 | const char *symname) | 487 | const char *symname) |
@@ -507,12 +507,12 @@ linvfs_symlink( | |||
507 | error = 0; | 507 | error = 0; |
508 | VOP_SYMLINK(dvp, dentry, vattr, (char *)symname, &cvp, NULL, error); | 508 | VOP_SYMLINK(dvp, dentry, vattr, (char *)symname, &cvp, NULL, error); |
509 | if (likely(!error && cvp)) { | 509 | if (likely(!error && cvp)) { |
510 | error = __linvfs_init_security(cvp, dir); | 510 | error = xfs_init_security(cvp, dir); |
511 | if (likely(!error)) { | 511 | if (likely(!error)) { |
512 | ip = LINVFS_GET_IP(cvp); | 512 | ip = LINVFS_GET_IP(cvp); |
513 | d_instantiate(dentry, ip); | 513 | d_instantiate(dentry, ip); |
514 | __linvfs_validate_fields(dir, vattr); | 514 | xfs_validate_fields(dir, vattr); |
515 | __linvfs_validate_fields(ip, vattr); | 515 | xfs_validate_fields(ip, vattr); |
516 | } | 516 | } |
517 | } | 517 | } |
518 | kfree(vattr); | 518 | kfree(vattr); |
@@ -520,7 +520,7 @@ linvfs_symlink( | |||
520 | } | 520 | } |
521 | 521 | ||
522 | STATIC int | 522 | STATIC int |
523 | linvfs_rmdir( | 523 | xfs_vn_rmdir( |
524 | struct inode *dir, | 524 | struct inode *dir, |
525 | struct dentry *dentry) | 525 | struct dentry *dentry) |
526 | { | 526 | { |
@@ -535,15 +535,15 @@ linvfs_rmdir( | |||
535 | 535 | ||
536 | VOP_RMDIR(dvp, dentry, NULL, error); | 536 | VOP_RMDIR(dvp, dentry, NULL, error); |
537 | if (likely(!error)) { | 537 | if (likely(!error)) { |
538 | __linvfs_validate_fields(inode, vattr); | 538 | xfs_validate_fields(inode, vattr); |
539 | __linvfs_validate_fields(dir, vattr); | 539 | xfs_validate_fields(dir, vattr); |
540 | } | 540 | } |
541 | kfree(vattr); | 541 | kfree(vattr); |
542 | return -error; | 542 | return -error; |
543 | } | 543 | } |
544 | 544 | ||
545 | STATIC int | 545 | STATIC int |
546 | linvfs_rename( | 546 | xfs_vn_rename( |
547 | struct inode *odir, | 547 | struct inode *odir, |
548 | struct dentry *odentry, | 548 | struct dentry *odentry, |
549 | struct inode *ndir, | 549 | struct inode *ndir, |
@@ -565,10 +565,10 @@ linvfs_rename( | |||
565 | VOP_RENAME(fvp, odentry, tvp, ndentry, NULL, error); | 565 | VOP_RENAME(fvp, odentry, tvp, ndentry, NULL, error); |
566 | if (likely(!error)) { | 566 | if (likely(!error)) { |
567 | if (new_inode) | 567 | if (new_inode) |
568 | __linvfs_validate_fields(new_inode, vattr); | 568 | xfs_validate_fields(new_inode, vattr); |
569 | __linvfs_validate_fields(odir, vattr); | 569 | xfs_validate_fields(odir, vattr); |
570 | if (ndir != odir) | 570 | if (ndir != odir) |
571 | __linvfs_validate_fields(ndir, vattr); | 571 | xfs_validate_fields(ndir, vattr); |
572 | } | 572 | } |
573 | kfree(vattr); | 573 | kfree(vattr); |
574 | return -error; | 574 | return -error; |
@@ -580,7 +580,7 @@ linvfs_rename( | |||
580 | * uio is kmalloced for this reason... | 580 | * uio is kmalloced for this reason... |
581 | */ | 581 | */ |
582 | STATIC void * | 582 | STATIC void * |
583 | linvfs_follow_link( | 583 | xfs_vn_follow_link( |
584 | struct dentry *dentry, | 584 | struct dentry *dentry, |
585 | struct nameidata *nd) | 585 | struct nameidata *nd) |
586 | { | 586 | { |
@@ -631,7 +631,7 @@ linvfs_follow_link( | |||
631 | } | 631 | } |
632 | 632 | ||
633 | STATIC void | 633 | STATIC void |
634 | linvfs_put_link( | 634 | xfs_vn_put_link( |
635 | struct dentry *dentry, | 635 | struct dentry *dentry, |
636 | struct nameidata *nd, | 636 | struct nameidata *nd, |
637 | void *p) | 637 | void *p) |
@@ -644,7 +644,7 @@ linvfs_put_link( | |||
644 | 644 | ||
645 | #ifdef CONFIG_XFS_POSIX_ACL | 645 | #ifdef CONFIG_XFS_POSIX_ACL |
646 | STATIC int | 646 | STATIC int |
647 | linvfs_permission( | 647 | xfs_vn_permission( |
648 | struct inode *inode, | 648 | struct inode *inode, |
649 | int mode, | 649 | int mode, |
650 | struct nameidata *nd) | 650 | struct nameidata *nd) |
@@ -657,11 +657,11 @@ linvfs_permission( | |||
657 | return -error; | 657 | return -error; |
658 | } | 658 | } |
659 | #else | 659 | #else |
660 | #define linvfs_permission NULL | 660 | #define xfs_vn_permission NULL |
661 | #endif | 661 | #endif |
662 | 662 | ||
663 | STATIC int | 663 | STATIC int |
664 | linvfs_getattr( | 664 | xfs_vn_getattr( |
665 | struct vfsmount *mnt, | 665 | struct vfsmount *mnt, |
666 | struct dentry *dentry, | 666 | struct dentry *dentry, |
667 | struct kstat *stat) | 667 | struct kstat *stat) |
@@ -678,7 +678,7 @@ linvfs_getattr( | |||
678 | } | 678 | } |
679 | 679 | ||
680 | STATIC int | 680 | STATIC int |
681 | linvfs_setattr( | 681 | xfs_vn_setattr( |
682 | struct dentry *dentry, | 682 | struct dentry *dentry, |
683 | struct iattr *attr) | 683 | struct iattr *attr) |
684 | { | 684 | { |
@@ -736,14 +736,14 @@ linvfs_setattr( | |||
736 | } | 736 | } |
737 | 737 | ||
738 | STATIC void | 738 | STATIC void |
739 | linvfs_truncate( | 739 | xfs_vn_truncate( |
740 | struct inode *inode) | 740 | struct inode *inode) |
741 | { | 741 | { |
742 | block_truncate_page(inode->i_mapping, inode->i_size, xfs_get_block); | 742 | block_truncate_page(inode->i_mapping, inode->i_size, xfs_get_block); |
743 | } | 743 | } |
744 | 744 | ||
745 | STATIC int | 745 | STATIC int |
746 | linvfs_setxattr( | 746 | xfs_vn_setxattr( |
747 | struct dentry *dentry, | 747 | struct dentry *dentry, |
748 | const char *name, | 748 | const char *name, |
749 | const void *data, | 749 | const void *data, |
@@ -774,7 +774,7 @@ linvfs_setxattr( | |||
774 | } | 774 | } |
775 | 775 | ||
776 | STATIC ssize_t | 776 | STATIC ssize_t |
777 | linvfs_getxattr( | 777 | xfs_vn_getxattr( |
778 | struct dentry *dentry, | 778 | struct dentry *dentry, |
779 | const char *name, | 779 | const char *name, |
780 | void *data, | 780 | void *data, |
@@ -804,7 +804,7 @@ linvfs_getxattr( | |||
804 | } | 804 | } |
805 | 805 | ||
806 | STATIC ssize_t | 806 | STATIC ssize_t |
807 | linvfs_listxattr( | 807 | xfs_vn_listxattr( |
808 | struct dentry *dentry, | 808 | struct dentry *dentry, |
809 | char *data, | 809 | char *data, |
810 | size_t size) | 810 | size_t size) |
@@ -824,7 +824,7 @@ linvfs_listxattr( | |||
824 | } | 824 | } |
825 | 825 | ||
826 | STATIC int | 826 | STATIC int |
827 | linvfs_removexattr( | 827 | xfs_vn_removexattr( |
828 | struct dentry *dentry, | 828 | struct dentry *dentry, |
829 | const char *name) | 829 | const char *name) |
830 | { | 830 | { |
@@ -846,45 +846,45 @@ linvfs_removexattr( | |||
846 | } | 846 | } |
847 | 847 | ||
848 | 848 | ||
849 | struct inode_operations linvfs_file_inode_operations = { | 849 | struct inode_operations xfs_inode_operations = { |
850 | .permission = linvfs_permission, | 850 | .permission = xfs_vn_permission, |
851 | .truncate = linvfs_truncate, | 851 | .truncate = xfs_vn_truncate, |
852 | .getattr = linvfs_getattr, | 852 | .getattr = xfs_vn_getattr, |
853 | .setattr = linvfs_setattr, | 853 | .setattr = xfs_vn_setattr, |
854 | .setxattr = linvfs_setxattr, | 854 | .setxattr = xfs_vn_setxattr, |
855 | .getxattr = linvfs_getxattr, | 855 | .getxattr = xfs_vn_getxattr, |
856 | .listxattr = linvfs_listxattr, | 856 | .listxattr = xfs_vn_listxattr, |
857 | .removexattr = linvfs_removexattr, | 857 | .removexattr = xfs_vn_removexattr, |
858 | }; | 858 | }; |
859 | 859 | ||
860 | struct inode_operations linvfs_dir_inode_operations = { | 860 | struct inode_operations xfs_dir_inode_operations = { |
861 | .create = linvfs_create, | 861 | .create = xfs_vn_create, |
862 | .lookup = linvfs_lookup, | 862 | .lookup = xfs_vn_lookup, |
863 | .link = linvfs_link, | 863 | .link = xfs_vn_link, |
864 | .unlink = linvfs_unlink, | 864 | .unlink = xfs_vn_unlink, |
865 | .symlink = linvfs_symlink, | 865 | .symlink = xfs_vn_symlink, |
866 | .mkdir = linvfs_mkdir, | 866 | .mkdir = xfs_vn_mkdir, |
867 | .rmdir = linvfs_rmdir, | 867 | .rmdir = xfs_vn_rmdir, |
868 | .mknod = linvfs_mknod, | 868 | .mknod = xfs_vn_mknod, |
869 | .rename = linvfs_rename, | 869 | .rename = xfs_vn_rename, |
870 | .permission = linvfs_permission, | 870 | .permission = xfs_vn_permission, |
871 | .getattr = linvfs_getattr, | 871 | .getattr = xfs_vn_getattr, |
872 | .setattr = linvfs_setattr, | 872 | .setattr = xfs_vn_setattr, |
873 | .setxattr = linvfs_setxattr, | 873 | .setxattr = xfs_vn_setxattr, |
874 | .getxattr = linvfs_getxattr, | 874 | .getxattr = xfs_vn_getxattr, |
875 | .listxattr = linvfs_listxattr, | 875 | .listxattr = xfs_vn_listxattr, |
876 | .removexattr = linvfs_removexattr, | 876 | .removexattr = xfs_vn_removexattr, |
877 | }; | 877 | }; |
878 | 878 | ||
879 | struct inode_operations linvfs_symlink_inode_operations = { | 879 | struct inode_operations xfs_symlink_inode_operations = { |
880 | .readlink = generic_readlink, | 880 | .readlink = generic_readlink, |
881 | .follow_link = linvfs_follow_link, | 881 | .follow_link = xfs_vn_follow_link, |
882 | .put_link = linvfs_put_link, | 882 | .put_link = xfs_vn_put_link, |
883 | .permission = linvfs_permission, | 883 | .permission = xfs_vn_permission, |
884 | .getattr = linvfs_getattr, | 884 | .getattr = xfs_vn_getattr, |
885 | .setattr = linvfs_setattr, | 885 | .setattr = xfs_vn_setattr, |
886 | .setxattr = linvfs_setxattr, | 886 | .setxattr = xfs_vn_setxattr, |
887 | .getxattr = linvfs_getxattr, | 887 | .getxattr = xfs_vn_getxattr, |
888 | .listxattr = linvfs_listxattr, | 888 | .listxattr = xfs_vn_listxattr, |
889 | .removexattr = linvfs_removexattr, | 889 | .removexattr = xfs_vn_removexattr, |
890 | }; | 890 | }; |
diff --git a/fs/xfs/linux-2.6/xfs_iops.h b/fs/xfs/linux-2.6/xfs_iops.h index 8b5275e4b83e..a8417d7af5f9 100644 --- a/fs/xfs/linux-2.6/xfs_iops.h +++ b/fs/xfs/linux-2.6/xfs_iops.h | |||
@@ -18,9 +18,9 @@ | |||
18 | #ifndef __XFS_IOPS_H__ | 18 | #ifndef __XFS_IOPS_H__ |
19 | #define __XFS_IOPS_H__ | 19 | #define __XFS_IOPS_H__ |
20 | 20 | ||
21 | extern struct inode_operations linvfs_file_inode_operations; | 21 | extern struct inode_operations xfs_inode_operations; |
22 | extern struct inode_operations linvfs_dir_inode_operations; | 22 | extern struct inode_operations xfs_dir_inode_operations; |
23 | extern struct inode_operations linvfs_symlink_inode_operations; | 23 | extern struct inode_operations xfs_symlink_inode_operations; |
24 | 24 | ||
25 | extern struct file_operations xfs_file_operations; | 25 | extern struct file_operations xfs_file_operations; |
26 | extern struct file_operations xfs_dir_file_operations; | 26 | extern struct file_operations xfs_dir_file_operations; |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 9eac4b49a199..cdbaea9e8573 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -127,21 +127,21 @@ xfs_set_inodeops( | |||
127 | { | 127 | { |
128 | switch (inode->i_mode & S_IFMT) { | 128 | switch (inode->i_mode & S_IFMT) { |
129 | case S_IFREG: | 129 | case S_IFREG: |
130 | inode->i_op = &linvfs_file_inode_operations; | 130 | inode->i_op = &xfs_inode_operations; |
131 | inode->i_fop = &xfs_file_operations; | 131 | inode->i_fop = &xfs_file_operations; |
132 | inode->i_mapping->a_ops = &xfs_address_space_operations; | 132 | inode->i_mapping->a_ops = &xfs_address_space_operations; |
133 | break; | 133 | break; |
134 | case S_IFDIR: | 134 | case S_IFDIR: |
135 | inode->i_op = &linvfs_dir_inode_operations; | 135 | inode->i_op = &xfs_dir_inode_operations; |
136 | inode->i_fop = &xfs_dir_file_operations; | 136 | inode->i_fop = &xfs_dir_file_operations; |
137 | break; | 137 | break; |
138 | case S_IFLNK: | 138 | case S_IFLNK: |
139 | inode->i_op = &linvfs_symlink_inode_operations; | 139 | inode->i_op = &xfs_symlink_inode_operations; |
140 | if (inode->i_blocks) | 140 | if (inode->i_blocks) |
141 | inode->i_mapping->a_ops = &xfs_address_space_operations; | 141 | inode->i_mapping->a_ops = &xfs_address_space_operations; |
142 | break; | 142 | break; |
143 | default: | 143 | default: |
144 | inode->i_op = &linvfs_file_inode_operations; | 144 | inode->i_op = &xfs_inode_operations; |
145 | init_special_inode(inode, inode->i_mode, inode->i_rdev); | 145 | init_special_inode(inode, inode->i_mode, inode->i_rdev); |
146 | break; | 146 | break; |
147 | } | 147 | } |