Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
struct file *lower_file;
struct dentry *dentry = file->f_path.dentry;
struct dentry *parent;
- struct vm_operations_struct *saved_vm_ops = NULL;
+ const struct vm_operations_struct *saved_vm_ops = NULL;
/*
* Since mm/memory.c:might_fault() (under PROVE_LOCKING) was
{
int err;
struct file *file, *lower_file;
- struct vm_operations_struct *lower_vm_ops;
+ const struct vm_operations_struct *lower_vm_ops;
struct vm_area_struct lower_vma;
BUG_ON(!vma);
struct unionfs_dir_state *rdstate;
struct file **lower_files;
int *saved_branch_ids; /* IDs of branches when file was opened */
- struct vm_operations_struct *lower_vm_ops;
+ const struct vm_operations_struct *lower_vm_ops;
bool wrote_to_file; /* for delayed copyup */
};