remove flag VM_ACCOUNT from check_vma()
Change-Id: I44f6654a055d2ea9594bf00035b123d86b0051de
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
static int check_vma(struct vm_area_struct *vma)
{
- return vma->vm_file && !(vma->vm_pgoff != 0 || !(vma->vm_flags & VM_EXEC) || (vma->vm_flags & VM_ACCOUNT) ||
- !(vma->vm_flags & (VM_WRITE | VM_MAYWRITE)) ||
- !(vma->vm_flags & (VM_READ | VM_MAYREAD)));
+ return vma->vm_file &&
+ !(vma->vm_pgoff != 0 ||
+ !(vma->vm_flags & VM_EXEC) ||
+ !(vma->vm_flags & (VM_READ | VM_MAYREAD)));
}
static inline int sspt_register_usprobe(struct us_ip *ip)
/* FIXME: check_vma()*/
static int check_vma(struct vm_area_struct *vma)
{
- return vma->vm_file && !(vma->vm_pgoff != 0 || !(vma->vm_flags & VM_EXEC) || (vma->vm_flags & VM_ACCOUNT) ||
- !(vma->vm_flags & (VM_READ | VM_MAYREAD)));
+ return vma->vm_file &&
+ !(vma->vm_pgoff != 0 ||
+ !(vma->vm_flags & VM_EXEC) ||
+ !(vma->vm_flags & (VM_READ | VM_MAYREAD)));
}
static struct vm_area_struct *find_vma_exe_by_dentry(struct mm_struct *mm, struct dentry *dentry)