diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2021-01-21 14:19:51 +0100 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2021-01-24 14:29:34 +0100 |
commit | fbdc2f6c40f6528fa0db79c73e844451234f3e26 (patch) | |
tree | a3b3519ed8fb7bf257e2e1a7abd74483189e5471 /crypto/memneq.c | |
parent | namespace: only take read lock in do_reconfigure_mnt() (diff) | |
download | linux-fbdc2f6c40f6528fa0db79c73e844451234f3e26.tar.xz linux-fbdc2f6c40f6528fa0db79c73e844451234f3e26.zip |
fs: split out functions to hold writers
When a mount is marked read-only we set MNT_WRITE_HOLD on it if there
aren't currently any active writers. Split this logic out into simple
helpers that we can use in follow-up patches.
Link: https://lore.kernel.org/r/20210121131959.646623-33-christian.brauner@ubuntu.com
Cc: David Howells <dhowells@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'crypto/memneq.c')
0 files changed, 0 insertions, 0 deletions