Home
last modified time | relevance | path

Searched hist:"33 e4def646c6e3818ada5961de013b31c3ef7f9c" (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/include/tee/
H A Dfs_htree.h33e4def646c6e3818ada5961de013b31c3ef7f9c Thu Jan 25 12:23:58 UTC 2018 Jerome Forissier <jerome.forissier@linaro.org> core: REE FS: make sure dirty flag is set when object is truncated

When an object is truncated but the number of blocks is unchanged, only
the metadata's length field is modified. The hash tree layer has to be
notified so that it knows it has to flush the data before closing the
object, otherwise the truncation is lost.
Add a function for that purpose: tee_fs_htree_meta_set_dirty(), and
call it whenever meta->length is updated.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/tee/
H A Dfs_htree.c33e4def646c6e3818ada5961de013b31c3ef7f9c Thu Jan 25 12:23:58 UTC 2018 Jerome Forissier <jerome.forissier@linaro.org> core: REE FS: make sure dirty flag is set when object is truncated

When an object is truncated but the number of blocks is unchanged, only
the metadata's length field is modified. The hash tree layer has to be
notified so that it knows it has to flush the data before closing the
object, otherwise the truncation is lost.
Add a function for that purpose: tee_fs_htree_meta_set_dirty(), and
call it whenever meta->length is updated.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
H A Dtee_ree_fs.c33e4def646c6e3818ada5961de013b31c3ef7f9c Thu Jan 25 12:23:58 UTC 2018 Jerome Forissier <jerome.forissier@linaro.org> core: REE FS: make sure dirty flag is set when object is truncated

When an object is truncated but the number of blocks is unchanged, only
the metadata's length field is modified. The hash tree layer has to be
notified so that it knows it has to flush the data before closing the
object, otherwise the truncation is lost.
Add a function for that purpose: tee_fs_htree_meta_set_dirty(), and
call it whenever meta->length is updated.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>