diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-06-06 01:22:04 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-06-06 01:22:04 -0400 |
commit | b2a21e7a6bfa6aa1b712fb6167d37a96f332d3d5 (patch) | |
tree | 0e9140196e999dc591ee64ccca44fcef0801fb21 /fs/xfs/xfs_attr.c | |
parent | c2c4c477e0d02b0b352a71a25be56c9d35537265 (diff) |
xfs: remove redundant geometry information from xfs_da_state
It's carried in state->args->geo, so there's no need to duplicate it
and use more stack space than necessary.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r-- | fs/xfs/xfs_attr.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index 470a22d190fb..bfe36fc2cdc2 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -896,8 +896,6 @@ restart: | |||
896 | state = xfs_da_state_alloc(); | 896 | state = xfs_da_state_alloc(); |
897 | state->args = args; | 897 | state->args = args; |
898 | state->mp = mp; | 898 | state->mp = mp; |
899 | state->blocksize = args->geo->blksize; | ||
900 | state->node_ents = args->geo->node_ents; | ||
901 | 899 | ||
902 | /* | 900 | /* |
903 | * Search to see if name already exists, and get back a pointer | 901 | * Search to see if name already exists, and get back a pointer |
@@ -1075,8 +1073,6 @@ restart: | |||
1075 | state = xfs_da_state_alloc(); | 1073 | state = xfs_da_state_alloc(); |
1076 | state->args = args; | 1074 | state->args = args; |
1077 | state->mp = mp; | 1075 | state->mp = mp; |
1078 | state->blocksize = args->geo->blksize; | ||
1079 | state->node_ents = args->geo->node_ents; | ||
1080 | state->inleaf = 0; | 1076 | state->inleaf = 0; |
1081 | error = xfs_da3_node_lookup_int(state, &retval); | 1077 | error = xfs_da3_node_lookup_int(state, &retval); |
1082 | if (error) | 1078 | if (error) |
@@ -1167,8 +1163,6 @@ xfs_attr_node_removename(xfs_da_args_t *args) | |||
1167 | state = xfs_da_state_alloc(); | 1163 | state = xfs_da_state_alloc(); |
1168 | state->args = args; | 1164 | state->args = args; |
1169 | state->mp = dp->i_mount; | 1165 | state->mp = dp->i_mount; |
1170 | state->blocksize = args->geo->blksize; | ||
1171 | state->node_ents = args->geo->node_ents; | ||
1172 | 1166 | ||
1173 | /* | 1167 | /* |
1174 | * Search to see if name exists, and get back a pointer to it. | 1168 | * Search to see if name exists, and get back a pointer to it. |
@@ -1430,8 +1424,6 @@ xfs_attr_node_get(xfs_da_args_t *args) | |||
1430 | state = xfs_da_state_alloc(); | 1424 | state = xfs_da_state_alloc(); |
1431 | state->args = args; | 1425 | state->args = args; |
1432 | state->mp = args->dp->i_mount; | 1426 | state->mp = args->dp->i_mount; |
1433 | state->blocksize = args->geo->blksize; | ||
1434 | state->node_ents = args->geo->node_ents; | ||
1435 | 1427 | ||
1436 | /* | 1428 | /* |
1437 | * Search to see if name exists, and get back a pointer to it. | 1429 | * Search to see if name exists, and get back a pointer to it. |