diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-10-06 14:41:17 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-10-18 16:08:06 -0400 |
commit | 6c77b0ea1bdf85dfd48c20ceb10fd215a95c66e2 (patch) | |
tree | c2233ab16624c0ad0e80180d955c2238c2e759e1 /fs/xfs/xfs_vnodeops.c | |
parent | 78a4b0961ff241c6f23b16329db0d67e97cb86a7 (diff) |
xfs: remove xfs_cred.h
We're not actually passing around credentials inside XFS for a while
now, so remove all xfs_cred.h with it's cred_t typedef and all
instances of it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index b7bdc43308e4..f82c8032db52 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -1256,8 +1256,7 @@ xfs_create( | |||
1256 | struct xfs_name *name, | 1256 | struct xfs_name *name, |
1257 | mode_t mode, | 1257 | mode_t mode, |
1258 | xfs_dev_t rdev, | 1258 | xfs_dev_t rdev, |
1259 | xfs_inode_t **ipp, | 1259 | xfs_inode_t **ipp) |
1260 | cred_t *credp) | ||
1261 | { | 1260 | { |
1262 | int is_dir = S_ISDIR(mode); | 1261 | int is_dir = S_ISDIR(mode); |
1263 | struct xfs_mount *mp = dp->i_mount; | 1262 | struct xfs_mount *mp = dp->i_mount; |
@@ -1363,7 +1362,7 @@ xfs_create( | |||
1363 | * entry pointing to them, but a directory also the "." entry | 1362 | * entry pointing to them, but a directory also the "." entry |
1364 | * pointing to itself. | 1363 | * pointing to itself. |
1365 | */ | 1364 | */ |
1366 | error = xfs_dir_ialloc(&tp, dp, mode, is_dir ? 2 : 1, rdev, credp, | 1365 | error = xfs_dir_ialloc(&tp, dp, mode, is_dir ? 2 : 1, rdev, |
1367 | prid, resblks > 0, &ip, &committed); | 1366 | prid, resblks > 0, &ip, &committed); |
1368 | if (error) { | 1367 | if (error) { |
1369 | if (error == ENOSPC) | 1368 | if (error == ENOSPC) |
@@ -1936,8 +1935,7 @@ xfs_symlink( | |||
1936 | struct xfs_name *link_name, | 1935 | struct xfs_name *link_name, |
1937 | const char *target_path, | 1936 | const char *target_path, |
1938 | mode_t mode, | 1937 | mode_t mode, |
1939 | xfs_inode_t **ipp, | 1938 | xfs_inode_t **ipp) |
1940 | cred_t *credp) | ||
1941 | { | 1939 | { |
1942 | xfs_mount_t *mp = dp->i_mount; | 1940 | xfs_mount_t *mp = dp->i_mount; |
1943 | xfs_trans_t *tp; | 1941 | xfs_trans_t *tp; |
@@ -2049,8 +2047,8 @@ xfs_symlink( | |||
2049 | /* | 2047 | /* |
2050 | * Allocate an inode for the symlink. | 2048 | * Allocate an inode for the symlink. |
2051 | */ | 2049 | */ |
2052 | error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), | 2050 | error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, |
2053 | 1, 0, credp, prid, resblks > 0, &ip, NULL); | 2051 | prid, resblks > 0, &ip, NULL); |
2054 | if (error) { | 2052 | if (error) { |
2055 | if (error == ENOSPC) | 2053 | if (error == ENOSPC) |
2056 | goto error_return; | 2054 | goto error_return; |