diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/isofs/rock.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/fs/isofs/rock.c b/fs/isofs/rock.c index 9f2aaa27f8fa..283e92197bb1 100644 --- a/fs/isofs/rock.c +++ b/fs/isofs/rock.c | |||
@@ -37,11 +37,6 @@ static int check_sp(struct rock_ridge *rr, struct inode *inode) | |||
37 | return 0; | 37 | return 0; |
38 | } | 38 | } |
39 | 39 | ||
40 | #define CHECK_CE \ | ||
41 | {cont_extent = isonum_733(rr->u.CE.extent); \ | ||
42 | cont_offset = isonum_733(rr->u.CE.offset); \ | ||
43 | cont_size = isonum_733(rr->u.CE.size);} | ||
44 | |||
45 | #define SETUP_ROCK_RIDGE(DE,CHR,LEN) \ | 40 | #define SETUP_ROCK_RIDGE(DE,CHR,LEN) \ |
46 | {LEN= sizeof(struct iso_directory_record) + DE->name_len[0]; \ | 41 | {LEN= sizeof(struct iso_directory_record) + DE->name_len[0]; \ |
47 | if(LEN & 1) LEN++; \ | 42 | if(LEN & 1) LEN++; \ |
@@ -126,7 +121,9 @@ repeat: | |||
126 | goto out; | 121 | goto out; |
127 | break; | 122 | break; |
128 | case SIG('C', 'E'): | 123 | case SIG('C', 'E'): |
129 | CHECK_CE; | 124 | cont_extent = isonum_733(rr->u.CE.extent); |
125 | cont_offset = isonum_733(rr->u.CE.offset); | ||
126 | cont_size = isonum_733(rr->u.CE.size); | ||
130 | break; | 127 | break; |
131 | case SIG('N', 'M'): | 128 | case SIG('N', 'M'): |
132 | if (truncate) | 129 | if (truncate) |
@@ -223,7 +220,9 @@ repeat: | |||
223 | goto out; | 220 | goto out; |
224 | break; | 221 | break; |
225 | case SIG('C', 'E'): | 222 | case SIG('C', 'E'): |
226 | CHECK_CE; | 223 | cont_extent = isonum_733(rr->u.CE.extent); |
224 | cont_offset = isonum_733(rr->u.CE.offset); | ||
225 | cont_size = isonum_733(rr->u.CE.size); | ||
227 | break; | 226 | break; |
228 | case SIG('E', 'R'): | 227 | case SIG('E', 'R'): |
229 | ISOFS_SB(inode->i_sb)->s_rock = 1; | 228 | ISOFS_SB(inode->i_sb)->s_rock = 1; |
@@ -592,7 +591,9 @@ repeat: | |||
592 | break; | 591 | break; |
593 | case SIG('C', 'E'): | 592 | case SIG('C', 'E'): |
594 | /* This tells is if there is a continuation record */ | 593 | /* This tells is if there is a continuation record */ |
595 | CHECK_CE; | 594 | cont_extent = isonum_733(rr->u.CE.extent); |
595 | cont_offset = isonum_733(rr->u.CE.offset); | ||
596 | cont_size = isonum_733(rr->u.CE.size); | ||
596 | default: | 597 | default: |
597 | break; | 598 | break; |
598 | } | 599 | } |