Commit 24181bb
lib/ext2fs: llseek: simplify linux section
On 32-bit musl systems, off_t is always 8 bytes regardless of
_FILE_OFFSET_BITS. The previous code did not cover this case.
The previous #ifdef logic was rather confusing, so I reworked it into a
more understandable form.
Bug: https://bugs.gentoo.org/908892
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Closes: #150
Signed-off-by: Sam James <sam@gentoo.org>
Link: https://lore.kernel.org/r/20231107233323.2013334-2-sam@gentoo.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent fed000a commit 24181bb
1 file changed
Lines changed: 15 additions & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 38 | | |
61 | 39 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 40 | | |
76 | 41 | | |
77 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
78 | 50 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
82 | 56 | | |
83 | | - | |
| 57 | + | |
| 58 | + | |
84 | 59 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 60 | | |
89 | 61 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 62 | | |
96 | 63 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 64 | | |
101 | 65 | | |
102 | 66 | | |
| |||
117 | 81 | | |
118 | 82 | | |
119 | 83 | | |
120 | | - | |
121 | 84 | | |
122 | 85 | | |
123 | 86 | | |
| |||
0 commit comments