diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-04 13:25:57 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:45 -0400 |
commit | a7ecd30c8300624448c4e66cd7a7e7209b96ea61 (patch) | |
tree | c282d706dbb238c2078f0d18f93f097d5f58f609 /fs/bcachefs/Makefile | |
parent | a1ee777bfcceeb916d837321144c782e12082588 (diff) | |
download | linux-stable-a7ecd30c8300624448c4e66cd7a7e7209b96ea61.tar.gz linux-stable-a7ecd30c8300624448c4e66cd7a7e7209b96ea61.tar.bz2 linux-stable-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/Makefile')
-rw-r--r-- | fs/bcachefs/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/Makefile b/fs/bcachefs/Makefile index 444e79c62b50..966c9b9a74fc 100644 --- a/fs/bcachefs/Makefile +++ b/fs/bcachefs/Makefile @@ -65,6 +65,7 @@ bcachefs-y := \ sysfs.o \ tests.o \ trace.o \ + two_state_shared_lock.o \ util.o \ varint.o \ xattr.o |