diff options
Diffstat (limited to 'fs/gfs2/eattr.c')
-rw-r--r-- | fs/gfs2/eattr.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c index 187fba1c4678..346601538ac7 100644 --- a/fs/gfs2/eattr.c +++ b/fs/gfs2/eattr.c | |||
@@ -395,17 +395,14 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh, | |||
395 | l = 9; | 395 | l = 9; |
396 | break; | 396 | break; |
397 | default: | 397 | default: |
398 | /* FIXME: Needs looking at again */ | ||
398 | break; | 399 | break; |
399 | } | 400 | } |
400 | 401 | ||
401 | memcpy(er->er_data + ei->ei_size, | 402 | memcpy(er->er_data + ei->ei_size, prefix, l); |
402 | prefix, l); | 403 | memcpy(er->er_data + ei->ei_size + l, GFS2_EA2NAME(ea), |
403 | memcpy(er->er_data + ei->ei_size + l, | ||
404 | GFS2_EA2NAME(ea), | ||
405 | ea->ea_name_len); | 404 | ea->ea_name_len); |
406 | memcpy(er->er_data + ei->ei_size + | 405 | memcpy(er->er_data + ei->ei_size + ea_size - 1, &c, 1); |
407 | ea_size - 1, | ||
408 | &c, 1); | ||
409 | } | 406 | } |
410 | 407 | ||
411 | ei->ei_size += ea_size; | 408 | ei->ei_size += ea_size; |