repo.or.cz
/
hed.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Rewrite find_bytestr for faster code
2012-09-21
P
etr
Tesarik
Merge f
i
xup
.
h
wi
t
h
a
ccess
.
h
commit
|
commitdiff
|
tree
2012-09-21
Pet
r
Tesarik
cleanup: Kill hed_file_read_b
e
gin
commit
|
commitdiff
|
tree
2012-09-21
P
e
tr Tesarik
Rewrite th
e
SIGBUS hand
l
e
r
commit
|
commitdiff
|
tree
2012-09-21
P
etr Tesarik
cache: initialize hed
_
block_d
a
ta's
d
ata
to NULL
i
f
.
.
.
commit
|
commitdiff
|
tree
2012-09-20
Petr Tesarik
Clear the mo
d
i
fied flag after a successful file_c
o
mmit(
)
commit
|
commitdiff
|
tree
2012-09-20
Petr Tesari
k
swap
.
h: rep
l
ace
t
rivial m
a
cros
with trivial inline
.
.
.
commit
|
commitdiff
|
tree
2012-09-20
P
e
t
r Tesarik
Remove main
.
c dependenc
y
on libhed conf
i
gurat
i
on
commit
|
commitdiff
|
tree
2012-09-20
Petr
T
esarik
Remo
v
e off_t f
r
o
m
t
he public libhed API
commit
|
commitdiff
|
tree
2012-09-20
Petr
T
esarik
Def
i
ne feat
u
re test macros in t
h
e
appropriate C fi
l
es
commit
|
commitdiff
|
tree
2012-09-20
Pet
r
Tesarik
Separate out libhe
d
configuratio
n
from the mai
n
co
n
fi
g
.
h
commit
|
commitdiff
|
tree
2012-09-20
Petr Tesarik
Make hed_expr_len and hed_expr_flags
inline
commit
|
commitdiff
|
tree
2012-09-20
Petr
T
esa
r
i
k
R
e
move type defines from tr
e
e
.
c
commit
|
commitdiff
|
tree
2012-09-20
Petr Tesarik
Remove type defin
e
s
fr
o
m expr
.
c
commit
|
commitdiff
|
tree
2012-09-20
Petr Tesa
r
ik
Document p
u
b
l
ic
and pr
i
vate libhed header files
commit
|
commitdiff
|
tree
2012-09-20
Pe
t
r T
e
sarik
R
e
name file_data
-
> b
l
ock_data
commit
|
commitdiff
|
tree
2012-09-20
Petr
Te
s
ar
i
k
R
e
name hed_file_cach
e
-> hed_cache
commit
|
commitdiff
|
tree
2012-09-20
Petr
T
esarik
Av
o
id lin
k
er namespace pollution
commit
|
commitdiff
|
tree
2012-09-20
Pe
t
r Tesarik
Move pr
i
va
t
e
.
h dec
l
a
r
ati
o
ns to file
.
c
commit
|
commitdiff
|
tree
2012-09-20
Petr Tesarik
Make splay/unspla
y
s
tat
i
c
commit
|
commitdiff
|
tree
2012-09-20
P
etr Te
s
arik
P
ut expre
s
sion-related typ
e
s
t
o
exp
r
.
h
commit
|
commitdiff
|
tree
2012-09-20
Pet
r
Tes
a
rik
S
anit
i
ze libhed/expr
.
h
commit
|
commitdiff
|
tree
2012-09-20
Pet
r
Tesarik
Rename eva
l
.
[c
h
]
-
> expr
.
[ch]
commit
|
commitdiff
|
tree
2012-09-20
Petr
Tesarik
Sanitize the file API
commit
|
commitdiff
|
tree
2012-09-19
Pe
t
r Te
s
arik
Sanitize he
d
_block interface
commit
|
commitdiff
|
tree
2012-09-19
Pe
t
r
Tesarik
NULL_
C
URSOR -> HE
D
_NULL_CURSOR
commit
|
commitdiff
|
tree
2012-09-19
Petr Tesarik
Sanitiz
e
hed_block
f
l
ags
commit
|
commitdiff
|
tree
2012-09-19
Pe
t
r Tesari
k
R
e
name hed_bloc
k
of
f
_t
-
> hed_cursor_t
commit
|
commitdiff
|
tree
2012-09-19
Pet
r
Te
s
arik
Sanitize
ty
p
e na
m
es in
p
ublic headers
commit
|
commitdiff
|
tree
2012-09-19
Petr Tesarik
cleanup:
adjust
names o
f
macros g
u
arding double inclusi
o
n
commit
|
commitdiff
|
tree
2012-09-19
Petr Tesa
r
i
k
Merge b
r
a
n
c
h
'
clean
u
ps' into libhed
commit
|
commitdiff
|
tree
2012-09-19
Petr Tesarik
Remove sw
a
p
.
h
f
rom the public inter
f
ace
commit
|
commitdiff
|
tree
2012-09-19
Petr
T
esari
k
Move (mo
s
t) public types to libhed/t
y
pes
.
h
commit
|
commitdiff
|
tree
2012-09-19
Petr
T
esa
r
ik
Move file_put_blocko
f
f to
f
i
le
.
c
commit
|
commitdiff
|
tree
2012-09-19
Petr
T
esarik
Separate
o
ut l
i
b
hed fil
e
s
commit
|
commitdiff
|
tree
2012-09-18
Petr Te
s
arik
Remove fi
l
e/fixup
.
h from the
p
u
blic i
n
terface
commit
|
commitdiff
|
tree
2012-09-18
P
e
tr Tesarik
Remove file/a
c
ces
.
h from the publi
c
interfac
e
commit
|
commitdiff
|
tree
2012-09-18
Petr Tesarik
M
ove global
i
nitialization to file_i
n
it()
commit
|
commitdiff
|
tree
2012-09-18
Pe
t
r Tesarik
Rename file meth
o
d
s
to free up the "file
_
init" name
commit
|
commitdiff
|
tree
2012-09-18
Petr Tesarik
Provide c
o
rrect fixup stub
s
commit
|
commitdiff
|
tree
2012-09-18
P
e
tr Tesarik
Remo
v
e l
a
st dependency on FI
L
E_BLOCK_SIZE fro
m
fileshow
.
c
commit
|
commitdiff
|
tree
2012-09-18
Petr Tesarik
Kill fi
l
e_pos_val
i
d
commit
|
commitdiff
|
tree
2012-09-18
Petr Tesarik
Move priv
a
te
d
e
f
initions f
r
om fil
e
/f
i
le
.
h to f
i
le/private
.
h
commit
|
commitdiff
|
tree
2012-09-18
P
e
t
r
Tesarik
Add block_is_after_insert
commit
|
commitdiff
|
tree
2012-09-18
Petr
Tesarik
cleanup:
c
onso
l
ida
t
e ch2mark and ch2reg
commit
|
commitdiff
|
tree
2012-09-14
Pet
r
Te
s
arik
clea
n
u
p
: si
m
plify is_insid
e
_visual
commit
|
commitdiff
|
tree
2012-09-13
P
e
t
r Tesar
i
k
Mer
g
e branch 'm
a
ster' of gi
t
+ssh://repo
.
or
.
cz/srv/g
i
t/h
e
d
commit
|
commitdiff
|
tree
2012-09-12
P
e
t
r Tesari
k
Mark visu
a
l b
l
ocks wit
h
revers
e
video
commit
|
commitdiff
|
tree
2012-09-12
Petr T
e
sarik
cleanup: determin
e
t
he hexv
i
ew color only o
n
ce
commit
|
commitdiff
|
tree
2012-09-12
Petr Tesarik
set initial idm
a
rk to spac
e
if t
h
e ma
r
k
g
oes to the
.
.
.
commit
|
commitdiff
|
tree
2012-09-12
P
e
tr Tesarik
c
l
eanu
p
: main loop
in fil
e
sho
w
_re
d
raw
commit
|
commitdiff
|
tree
2011-10-04
Petr Tesarik
mmap
s
wp_
s
etsize: return s
u
ccess for
no swap file
commit
|
commitdiff
|
tree
2011-10-04
Petr Tesarik
f
i
le_swp_init: avoi
d
d
ouble free of
the swap filenam
e
commit
|
commitdiff
|
tree
2011-10-04
Petr Tesarik
Fix
segmentation fa
u
l
t
if file_i
n
it(
)
fails
commit
|
commitdiff
|
tree
2011-09-29
Petr Tesarik
cleanu
p
: Change ownersh
i
p of file_c
a
c
he o
b
je
c
t
commit
|
commitdiff
|
tree
2011-09-29
P
e
tr Tesarik
Use unsigned arith
m
etic f
o
r p
o
s_column()
commit
|
commitdiff
|
tree
2011-09-29
Petr
Te
s
arik
Provide a function
to co
m
pute the colu
m
n of a file
.
.
.
commit
|
commitdiff
|
tree
2011-09-29
Petr
Tes
a
rik
U
se bit shifts for
SWP_MAPEX
T
ENT wh
e
re p
o
ssibl
e
commit
|
commitdiff
|
tree
2011-09-29
Petr T
e
sarik
Use
u
n
s
igned types for
p
a
ge
s
iz
e
and sh
i
ft
commit
|
commitdiff
|
tree
2011-09-29
Pe
t
r Tesarik
Fix ge
t
ting swap file s
i
ze on read
commit
|
commitdiff
|
tree
2011-09-29
Petr
Tes
a
ri
k
U
se
F
I
LE_BLOCK_SH
I
FT and
SW
A
P_BLOC
K
_SHIF
T
where possible
commit
|
commitdiff
|
tree
2011-09-29
Petr Te
s
ari
k
Provide FIL
E
_BLOCK_SHIFT a
n
d
SWAP
_
BLOCK_SHIFT
commit
|
commitdiff
|
tree
2011-09-29
Petr Tesa
r
ik
numb
e
rs
.
h:
Add
missing include <stdint
.
h>
commit
|
commitdiff
|
tree
2011-09-27
Petr Tesarik
Fi
x
swap blo
c
k size handling
commit
|
commitdiff
|
tree
2011-09-27
Pet
r
Tesari
k
cleanup: Ge
t
swap file size with lseek() inst
e
ad of
.
.
.
commit
|
commitdiff
|
tree
2011-09-27
Petr Tesarik
opt
i
mi
z
e:
C
han
g
e the lis
t
_empty()
condition
in swp_bfree
commit
|
commitdiff
|
tree
2011-09-27
Petr Tesarik
cle
a
nup
:
Do not ma
r
k sw
p
_freemapping as inli
n
e
commit
|
commitdiff
|
tree
2011-09-27
P
e
t
r
T
es
a
rik
c
l
eanup:
C
all swp_done in
s
t
ead of swp_close if
i
ni
t
.
.
.
commit
|
commitdiff
|
tree
2011-09-27
Petr T
e
sarik
cleanup: Kill struct sw
p
_
f
ile flags
commit
|
commitdiff
|
tree
2011-09-27
Petr Tesarik
s
w
ap:
handle failed swp_page
_
allo
c
in read_header
commit
|
commitdiff
|
tree
2011-09-27
Petr Tesarik
c
l
eanup: (swp_split
)
Ch
a
nge s
p
l
it poi
n
t ty
p
e to unsigned int
commit
|
commitdiff
|
tree
2011-09-27
Petr T
e
sarik
Try to reallocate all
sizes
,
not just >= F
I
LE_B
L
OCK_SIZE/
4
commit
|
commitdiff
|
tree
2011-09-27
Petr Te
s
arik
clean
u
p: R
e
mo
v
e
first parameter of swp
_
split
commit
|
commitdiff
|
tree
2011-09-27
Pe
t
r Tesa
r
ik
swap: m
a
ke the allocation
sea
r
ch more flexible
commit
|
commitdiff
|
tree
2011-09-27
Petr Tes
a
rik
swap
:
Chunk
c
o
m
b
in
i
ng
commit
|
commitdiff
|
tree
2011-09-27
Petr
T
esarik
swap:
K
eep th
e
f
ree list so
r
ted by off
commit
|
commitdiff
|
tree
2011-09-27
P
e
tr Tesarik
Store s
w
p_allocs in a d
o
u
bly-linked
list
commit
|
commitdiff
|
tree
2011-09-27
Petr T
e
sarik
clean
u
p: Kill swp_bfind
commit
|
commitdiff
|
tree
2011-09-27
Pet
r
Tesarik
swp_find_alloc: i
n
iti
a
lize o
f
f to 0 t
o
sil
e
nce a
warning
commit
|
commitdiff
|
tree
2011-09-27
Petr Tesarik
s
w
p
_a
l
loc: Remove
t
h
e
block field
commit
|
commitdiff
|
tree
2011-09-27
P
e
tr Tesarik
swap: Cha
n
ge the indenting
i
n
s
wp_dump
t
o make output
.
.
.
commit
|
commitdiff
|
tree
2011-09-27
P
et
r
T
esarik
sw
a
p: M
a
i
ntain per-block free lists
commit
|
commitdiff
|
tree
2011-09-27
Pe
t
r Tes
a
r
i
k
swap_alloc:
Store block offset
i
nstead
of
f
ull pointer
commit
|
commitdiff
|
tree
2011-09-27
Pe
t
r
T
e
s
a
rik
swap: store swp_alloc siz
e
in an unsi
g
n
e
d int
commit
|
commitdiff
|
tree
2011-09-27
P
e
t
r Tes
a
r
ik
swap: Maintain
p
e
r-block alloc l
i
sts
commit
|
commitdiff
|
tree
2011-09-27
Petr
T
esarik
Fix
e
rase inside virtual blocks
commit
|
commitdiff
|
tree
2011-09-26
Petr Te
s
a
r
ik
Move size alignment to
s
wp_s
p
l
i
t
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesari
k
s
w
p
_shr
i
nk:
T
ry to rea
l
l
o
cate big
chunks
commit
|
commitdiff
|
tree
2011-09-26
Petr Te
s
ar
i
k
Separate ou
t
the
w
orkho
r
se
s
from swp_malloc and swp_fre
e
commit
|
commitdiff
|
tree
2011-09-26
P
etr Te
s
a
r
i
k
Fix warning about ignoring re
t
urn value o
f
realloc
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesarik
Do no
t
mark mmap
v
ersion
of se
t
s
i
ze and p
a
ge_alloc
.
.
.
commit
|
commitdiff
|
tree
2011-09-26
Petr T
e
sarik
Ren
a
me the current swap
f
ile to the
normal
swap file
.
.
.
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesarik
Check only siz
e
and
mtime on rea
d
_
s
wap
commit
|
commitdiff
|
tree
2011-09-26
Petr
T
esarik
Add CONFIG_SWAP_MMAP
commit
|
commitdiff
|
tree
2011-09-26
P
etr Tes
a
ri
k
s
w
a
p: Provide swp_page_{rea
d
,write
}
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesa
r
i
k
fix
swp_isreado
n
ly
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesari
k
swap: set size after open
commit
|
commitdiff
|
tree
2011-09-26
Pet
r
Tes
a
ri
k
swap: add SWP_PAGE_I
N
VALID
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesarik
cleanup:
M
ov
e
readahead field in struc
t
fil
e
commit
|
commitdiff
|
tree
2011-09-26
Petr Tesa
r
ik
A
d
d CONFIG_SWAP
commit
|
commitdiff
|
tree
2011-09-26
Pe
t
r Tesarik
Move swp file init/
r
elease to
s
eparate functions
commit
|
commitdiff
|
tree
next