Searched refs:oldflags (Results 1 – 9 of 9) sorted by relevance
700 vm_flags_t oldflags = READ_ONCE(vma->vm_flags); in mprotect_fixup() local709 if (newflags == oldflags) { in mprotect_fixup()720 (oldflags & (VM_PFNMAP|VM_MIXEDMAP)) && in mprotect_fixup()742 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup()744 if (!(oldflags & (VM_ACCOUNT|VM_WRITE|VM_HUGETLB| in mprotect_fixup()751 } else if ((oldflags & VM_ACCOUNT) && vma_is_anonymous(vma) && in mprotect_fixup()776 if ((oldflags & VM_ACCOUNT) && !(newflags & VM_ACCOUNT)) in mprotect_fixup()783 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()788 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
473 vm_flags_t oldflags = vma->vm_flags; in mlock_fixup() local475 if (newflags == oldflags || (oldflags & VM_SPECIAL) || in mlock_fixup()477 vma_is_dax(vma) || vma_is_secretmem(vma) || (oldflags & VM_DROPPABLE)) in mlock_fixup()493 else if (oldflags & VM_LOCKED) in mlock_fixup()502 if ((newflags & VM_LOCKED) && (oldflags & VM_LOCKED)) { in mlock_fixup()
334 unsigned oldflags = ~current->flags & flags; in memalloc_flags_save() local336 return oldflags; in memalloc_flags_save()
187 unsigned int oldflags, unsigned int flags) in fscrypt_prepare_setflags() argument198 if (IS_ENCRYPTED(inode) && (flags & ~oldflags & FS_CASEFOLD_FL)) { in fscrypt_prepare_setflags()
94 unsigned oldflags; in ocfs2_fileattr_set() local109 oldflags = ocfs2_inode->ip_attr; in ocfs2_fileattr_set()111 flags |= oldflags & ~OCFS2_FL_MODIFIABLE; in ocfs2_fileattr_set()115 if ((flags ^ oldflags) & (FS_APPEND_FL | FS_IMMUTABLE_FL) && in ocfs2_fileattr_set()
143 unsigned int flags, oldflags; in nilfs_fileattr_set() local155 oldflags = NILFS_I(inode)->i_flags & ~FS_FL_USER_MODIFIABLE; in nilfs_fileattr_set()156 NILFS_I(inode)->i_flags = oldflags | (flags & FS_FL_USER_MODIFIABLE); in nilfs_fileattr_set()
469 unsigned int oldflags, unsigned int flags);813 unsigned int oldflags, in fscrypt_prepare_setflags() argument
894 char oldflags = old->flags & SE_MNTMASK; in selinux_cmp_sb_context() local897 if (oldflags != newflags) in selinux_cmp_sb_context()899 if ((oldflags & FSCONTEXT_MNT) && old->sid != new->sid) in selinux_cmp_sb_context()901 if ((oldflags & CONTEXT_MNT) && old->mntpoint_sid != new->mntpoint_sid) in selinux_cmp_sb_context()903 if ((oldflags & DEFCONTEXT_MNT) && old->def_sid != new->def_sid) in selinux_cmp_sb_context()905 if (oldflags & ROOTCONTEXT_MNT) { in selinux_cmp_sb_context()
2915 unsigned int oldflags = old->mnt_cifs_flags & CIFS_MOUNT_MASK; in compare_mount_options() local2924 if (oldflags != newflags) in compare_mount_options()