diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 58973bb46038..da0159d99f82 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include "xfs_error.h" | 43 | #include "xfs_error.h" |
44 | #include "xfs_itable.h" | 44 | #include "xfs_itable.h" |
45 | #include "xfs_rw.h" | 45 | #include "xfs_rw.h" |
46 | #include "xfs_acl.h" | ||
47 | #include "xfs_attr.h" | 46 | #include "xfs_attr.h" |
48 | #include "xfs_buf_item.h" | 47 | #include "xfs_buf_item.h" |
49 | #include "xfs_utils.h" | 48 | #include "xfs_utils.h" |
@@ -485,14 +484,6 @@ xfs_vn_put_link( | |||
485 | } | 484 | } |
486 | 485 | ||
487 | STATIC int | 486 | STATIC int |
488 | xfs_vn_permission( | ||
489 | struct inode *inode, | ||
490 | int mask) | ||
491 | { | ||
492 | return generic_permission(inode, mask, xfs_check_acl); | ||
493 | } | ||
494 | |||
495 | STATIC int | ||
496 | xfs_vn_getattr( | 487 | xfs_vn_getattr( |
497 | struct vfsmount *mnt, | 488 | struct vfsmount *mnt, |
498 | struct dentry *dentry, | 489 | struct dentry *dentry, |
@@ -680,8 +671,8 @@ xfs_vn_fiemap( | |||
680 | else | 671 | else |
681 | bm.bmv_length = BTOBB(length); | 672 | bm.bmv_length = BTOBB(length); |
682 | 673 | ||
683 | /* our formatter will tell xfs_getbmap when to stop. */ | 674 | /* We add one because in getbmap world count includes the header */ |
684 | bm.bmv_count = MAXEXTNUM; | 675 | bm.bmv_count = fieinfo->fi_extents_max + 1; |
685 | bm.bmv_iflags = BMV_IF_PREALLOC; | 676 | bm.bmv_iflags = BMV_IF_PREALLOC; |
686 | if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) | 677 | if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) |
687 | bm.bmv_iflags |= BMV_IF_ATTRFORK; | 678 | bm.bmv_iflags |= BMV_IF_ATTRFORK; |
@@ -696,7 +687,7 @@ xfs_vn_fiemap( | |||
696 | } | 687 | } |
697 | 688 | ||
698 | static const struct inode_operations xfs_inode_operations = { | 689 | static const struct inode_operations xfs_inode_operations = { |
699 | .permission = xfs_vn_permission, | 690 | .check_acl = xfs_check_acl, |
700 | .truncate = xfs_vn_truncate, | 691 | .truncate = xfs_vn_truncate, |
701 | .getattr = xfs_vn_getattr, | 692 | .getattr = xfs_vn_getattr, |
702 | .setattr = xfs_vn_setattr, | 693 | .setattr = xfs_vn_setattr, |
@@ -724,7 +715,7 @@ static const struct inode_operations xfs_dir_inode_operations = { | |||
724 | .rmdir = xfs_vn_unlink, | 715 | .rmdir = xfs_vn_unlink, |
725 | .mknod = xfs_vn_mknod, | 716 | .mknod = xfs_vn_mknod, |
726 | .rename = xfs_vn_rename, | 717 | .rename = xfs_vn_rename, |
727 | .permission = xfs_vn_permission, | 718 | .check_acl = xfs_check_acl, |
728 | .getattr = xfs_vn_getattr, | 719 | .getattr = xfs_vn_getattr, |
729 | .setattr = xfs_vn_setattr, | 720 | .setattr = xfs_vn_setattr, |
730 | .setxattr = generic_setxattr, | 721 | .setxattr = generic_setxattr, |
@@ -749,7 +740,7 @@ static const struct inode_operations xfs_dir_ci_inode_operations = { | |||
749 | .rmdir = xfs_vn_unlink, | 740 | .rmdir = xfs_vn_unlink, |
750 | .mknod = xfs_vn_mknod, | 741 | .mknod = xfs_vn_mknod, |
751 | .rename = xfs_vn_rename, | 742 | .rename = xfs_vn_rename, |
752 | .permission = xfs_vn_permission, | 743 | .check_acl = xfs_check_acl, |
753 | .getattr = xfs_vn_getattr, | 744 | .getattr = xfs_vn_getattr, |
754 | .setattr = xfs_vn_setattr, | 745 | .setattr = xfs_vn_setattr, |
755 | .setxattr = generic_setxattr, | 746 | .setxattr = generic_setxattr, |
@@ -762,7 +753,7 @@ static const struct inode_operations xfs_symlink_inode_operations = { | |||
762 | .readlink = generic_readlink, | 753 | .readlink = generic_readlink, |
763 | .follow_link = xfs_vn_follow_link, | 754 | .follow_link = xfs_vn_follow_link, |
764 | .put_link = xfs_vn_put_link, | 755 | .put_link = xfs_vn_put_link, |
765 | .permission = xfs_vn_permission, | 756 | .check_acl = xfs_check_acl, |
766 | .getattr = xfs_vn_getattr, | 757 | .getattr = xfs_vn_getattr, |
767 | .setattr = xfs_vn_setattr, | 758 | .setattr = xfs_vn_setattr, |
768 | .setxattr = generic_setxattr, | 759 | .setxattr = generic_setxattr, |