diff options
author | Amir Goldstein <amir73il@gmail.com> | 2023-06-17 08:12:50 +0200 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2023-06-19 13:02:00 +0200 |
commit | e4599d4b1aeff031d5764b25b37100b4f98148fc (patch) | |
tree | f5a64e682830b685f3f19a54f81b7a00e0d3dfe1 /fs/overlayfs/super.c | |
parent | ovl: check type and offset of struct vfsmount in ovl_entry (diff) | |
download | linux-e4599d4b1aeff031d5764b25b37100b4f98148fc.tar.xz linux-e4599d4b1aeff031d5764b25b37100b4f98148fc.zip |
ovl: negate the ofs->share_whiteout boolean
The default common case is that whiteout sharing is enabled.
Change to storing the negated no_shared_whiteout state, so we will not
need to initialize it.
This is the first step towards removing all config and feature
initializations out of ovl_fill_super().
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r-- | fs/overlayfs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 14a2ebdc8126..ee9adb413d0e 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -1954,9 +1954,6 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent) if (!cred) goto out_err; - /* Is there a reason anyone would want not to share whiteouts? */ - ofs->share_whiteout = true; - ofs->config.index = ovl_index_def; ofs->config.uuid = true; ofs->config.nfs_export = ovl_nfs_export_def; |