Commit 946217b
xfs: Remote attr validation fixes and optimisations
- optimise the calcuation for the number of blocks in a remote
xattr.
- check attribute length against MAX_XATTR_SIZE, not MAXPATHLEN
- whitespace fixes
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>1 parent 123887e commit 946217b
1 file changed
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
| |||
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
| 76 | + | |
83 | 77 | | |
84 | 78 | | |
85 | 79 | | |
| |||
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | | - | |
187 | 180 | | |
188 | 181 | | |
189 | 182 | | |
| |||
367 | 360 | | |
368 | 361 | | |
369 | 362 | | |
370 | | - | |
371 | 363 | | |
372 | 364 | | |
373 | 365 | | |
| |||
422 | 414 | | |
423 | 415 | | |
424 | 416 | | |
425 | | - | |
| 417 | + | |
426 | 418 | | |
427 | | - | |
428 | 419 | | |
429 | 420 | | |
430 | 421 | | |
| |||
0 commit comments