diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-04 20:25:57 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:45 +0300 |
commit | a7ecd30c8300624448c4e66cd7a7e7209b96ea61 (patch) | |
tree | c282d706dbb238c2078f0d18f93f097d5f58f609 /fs/bcachefs/move.h | |
parent | a1ee777bfcceeb916d837321144c782e12082588 (diff) | |
download | linux-a7ecd30c8300624448c4e66cd7a7e7209b96ea61.tar.xz |
bcachefs: Factor out two_state_shared_lock
We have a unique lock used for controlling adding to the pagecache: the
lock has two states, where both states are shared - the lock may be held
multiple times for either state - but not both states at the same time.
This is exactly what we need for nocow mode locking, so this patch pulls
it out of fs.c into its own file.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/move.h')
0 files changed, 0 insertions, 0 deletions