ovl: split ovl_want_write() into two helpers
authorAmir Goldstein <amir73il@gmail.com>
Wed, 16 Aug 2023 09:18:15 +0000 (12:18 +0300)
committerAmir Goldstein <amir73il@gmail.com>
Mon, 30 Oct 2023 22:12:57 +0000 (00:12 +0200)
commitd08d3b3c2caf6c482703bbc5efaa7b9ae95dea20
treef2a2f3a802638ba7c3bb1f283cf6b0c8e764f521
parentc002728f608183449673818076380124935e6b9b
ovl: split ovl_want_write() into two helpers

ovl_get_write_access() gets write access to upper mnt without taking
freeze protection on upper sb and ovl_start_write() only takes freeze
protection on upper sb.

These helpers will be used to breakup the large ovl_want_write() scope
during copy up into finer grained freeze protection scopes.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c