diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-02-04 20:13:24 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 02:22:38 -0500 |
commit | 4576758db5817a91b8974c696247d459dc653db2 (patch) | |
tree | 43b5b471510f0981ea2dc668ca7591a75831f111 /fs/xfs/xfs_vnodeops.c | |
parent | f6aa7f2184330262e1cb5f7802536e5346bd46a3 (diff) |
[XFS] use generic_permission
Now that all direct caller of xfs_iaccess are gone we can kill xfs_iaccess
and xfs_access and just use generic_permission with a check_acl callback.
This is required for the per-mount read-only patchset in -mm to work
properly with XFS.
SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30370a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 076555e8763f..27e1bea8169f 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -898,27 +898,6 @@ xfs_setattr( | |||
898 | return code; | 898 | return code; |
899 | } | 899 | } |
900 | 900 | ||
901 | |||
902 | /* | ||
903 | * xfs_access | ||
904 | * Null conversion from vnode mode bits to inode mode bits, as in efs. | ||
905 | */ | ||
906 | int | ||
907 | xfs_access( | ||
908 | xfs_inode_t *ip, | ||
909 | int mode, | ||
910 | cred_t *credp) | ||
911 | { | ||
912 | int error; | ||
913 | |||
914 | xfs_itrace_entry(ip); | ||
915 | xfs_ilock(ip, XFS_ILOCK_SHARED); | ||
916 | error = xfs_iaccess(ip, mode, credp); | ||
917 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | ||
918 | return error; | ||
919 | } | ||
920 | |||
921 | |||
922 | /* | 901 | /* |
923 | * The maximum pathlen is 1024 bytes. Since the minimum file system | 902 | * The maximum pathlen is 1024 bytes. Since the minimum file system |
924 | * blocksize is 512 bytes, we can get a max of 2 extents back from | 903 | * blocksize is 512 bytes, we can get a max of 2 extents back from |