copy_up.c (b0504bfe1b8acdcfb5ef466581d930835ef3c49e) copy_up.c (f01d08899fd7fa808ff9b8d33ca4882ab44d42fa)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright (C) 2011 Novell Inc.
5 */
6
7#include <linux/module.h>
8#include <linux/fs.h>

--- 918 unchanged lines hidden (view full) ---

927 if (to_index)
928 kfree(c->destname.name);
929 return err;
930}
931
932static bool ovl_need_meta_copy_up(struct dentry *dentry, umode_t mode,
933 int flags)
934{
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright (C) 2011 Novell Inc.
5 */
6
7#include <linux/module.h>
8#include <linux/fs.h>

--- 918 unchanged lines hidden (view full) ---

927 if (to_index)
928 kfree(c->destname.name);
929 return err;
930}
931
932static bool ovl_need_meta_copy_up(struct dentry *dentry, umode_t mode,
933 int flags)
934{
935 struct ovl_fs *ofs = dentry->d_sb->s_fs_info;
935 struct ovl_fs *ofs = OVL_FS(dentry->d_sb);
936
937 if (!ofs->config.metacopy)
938 return false;
939
940 if (!S_ISREG(mode))
941 return false;
942
943 if (flags && ((OPEN_FMODE(flags) & FMODE_WRITE) || (flags & O_TRUNC)))

--- 250 unchanged lines hidden ---
936
937 if (!ofs->config.metacopy)
938 return false;
939
940 if (!S_ISREG(mode))
941 return false;
942
943 if (flags && ((OPEN_FMODE(flags) & FMODE_WRITE) || (flags & O_TRUNC)))

--- 250 unchanged lines hidden ---