diff options
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 b7bdc43308e..f82c8032db5 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; |