diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-04 18:25:57 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:45 +0200 |
commit | a7ecd30c8300624448c4e66cd7a7e7209b96ea61 (patch) | |
tree | c282d706dbb238c2078f0d18f93f097d5f58f609 /fs/bcachefs/error.c | |
parent | bcachefs: Kill BCH_WRITE_FLUSH (diff) | |
download | linux-a7ecd30c8300624448c4e66cd7a7e7209b96ea61.tar.xz linux-a7ecd30c8300624448c4e66cd7a7e7209b96ea61.zip |
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/error.c')
0 files changed, 0 insertions, 0 deletions