]> www.infradead.org Git - mtd-utils.git/commit
ubifs-utils: Add spinlock implementations
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 11 Nov 2024 08:36:47 +0000 (16:36 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 11 Nov 2024 09:32:45 +0000 (10:32 +0100)
commit9ce4a0e99198995bb7bf57076066b35fed23b8d3
tree8965412e3ab4ce50c87762481b77483b6768f3e9
parent12b706023468c8b8fb1ed0e3fb940151339b1680
ubifs-utils: Add spinlock implementations

Add spinlock implementations, because there are some spinlocks
(eg. c->cnt_lock, c->buds_lock) used in UBIFS linux kernel libs.
The spinlock is implemented based on pthread mutex.

This is a preparation for replacing implementation of UBIFS utils with
linux kernel libs.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
ubifs-utils/Makemodule.am
ubifs-utils/common/spinlock.h [new file with mode: 0644]