Searched refs:oldflags (Results 1 – 12 of 12) sorted by relevance
| /linux/drivers/auxdisplay/ |
| H A D | charlcd.c | 206 int oldflags = priv->flags; in handle_lcd_special_code() local 212 if (priv->flags != oldflags) in handle_lcd_special_code() 219 if (priv->flags != oldflags) in handle_lcd_special_code() 226 if (priv->flags != oldflags) in handle_lcd_special_code() 233 if (priv->flags != oldflags) in handle_lcd_special_code() 240 if (priv->flags != oldflags) in handle_lcd_special_code() 247 if (priv->flags != oldflags) in handle_lcd_special_code() 254 if (priv->flags != oldflags) in handle_lcd_special_code() 261 if (priv->flags != oldflags) in handle_lcd_special_code() 272 if (priv->flags != oldflags) in handle_lcd_special_code() [all …]
|
| /linux/mm/ |
| H A D | mprotect.c | 760 vm_flags_t oldflags = READ_ONCE(vma->vm_flags); in mprotect_fixup() local 769 if (newflags == oldflags) { in mprotect_fixup() 780 (oldflags & (VM_PFNMAP|VM_MIXEDMAP)) && in mprotect_fixup() 802 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup() 804 if (!(oldflags & (VM_ACCOUNT|VM_WRITE|VM_HUGETLB| in mprotect_fixup() 811 } else if ((oldflags & VM_ACCOUNT) && vma_is_anonymous(vma) && in mprotect_fixup() 836 if ((oldflags & VM_ACCOUNT) && !(newflags & VM_ACCOUNT)) in mprotect_fixup() 843 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup() 848 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
|
| H A D | mlock.c | 473 vm_flags_t oldflags = vma->vm_flags; in mlock_fixup() local 475 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()
|
| /linux/arch/x86/include/asm/ |
| H A D | tlbflush.h | 361 static inline bool pte_flags_need_flush(unsigned long oldflags, in pte_flags_need_flush() argument 380 unsigned long diff = oldflags ^ newflags; in pte_flags_need_flush() 396 if (diff & oldflags & flush_on_clear) in pte_flags_need_flush()
|
| /linux/fs/ext4/ |
| H A D | ioctl.c | 537 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable() local 539 if (!(oldflags & EXT4_IMMUTABLE_FL) || !(flags & EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable() 542 if ((oldflags & ~EXT4_IMMUTABLE_FL) != (flags & ~EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable() 566 static bool dax_compatible(struct inode *inode, unsigned int oldflags, in dax_compatible() argument 572 oldflags &= ~EXT4_INLINE_DATA_FL; in dax_compatible() 576 if ((oldflags & EXT4_DAX_MUT_EXCL) || in dax_compatible() 583 if ((flags & EXT4_DAX_MUT_EXCL) && (oldflags & EXT4_DAX_FL)) in dax_compatible() 596 unsigned int oldflags, mask, i; in ext4_ioctl_setflags() local 603 oldflags = ei->i_flags; in ext4_ioctl_setflags() 608 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags() [all …]
|
| /linux/include/linux/sched/ |
| H A D | mm.h | 332 unsigned oldflags = ~current->flags & flags; in memalloc_flags_save() local 334 return oldflags; in memalloc_flags_save()
|
| /linux/fs/crypto/ |
| H A D | hooks.c | 187 unsigned int oldflags, unsigned int flags) in fscrypt_prepare_setflags() argument 198 if (IS_ENCRYPTED(inode) && (flags & ~oldflags & FS_CASEFOLD_FL)) { in fscrypt_prepare_setflags()
|
| /linux/fs/ocfs2/ |
| H A D | ioctl.c | 94 unsigned oldflags; in ocfs2_fileattr_set() local 109 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()
|
| /linux/fs/nilfs2/ |
| H A D | ioctl.c | 143 unsigned int flags, oldflags; in nilfs_fileattr_set() local 155 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()
|
| /linux/include/linux/ |
| H A D | fscrypt.h | 469 unsigned int oldflags, unsigned int flags); 813 unsigned int oldflags, in fscrypt_prepare_setflags() argument
|
| /linux/security/selinux/ |
| H A D | hooks.c | 892 char oldflags = old->flags & SE_MNTMASK; in selinux_cmp_sb_context() local 895 if (oldflags != newflags) in selinux_cmp_sb_context() 897 if ((oldflags & FSCONTEXT_MNT) && old->sid != new->sid) in selinux_cmp_sb_context() 899 if ((oldflags & CONTEXT_MNT) && old->mntpoint_sid != new->mntpoint_sid) in selinux_cmp_sb_context() 901 if ((oldflags & DEFCONTEXT_MNT) && old->def_sid != new->def_sid) in selinux_cmp_sb_context() 903 if (oldflags & ROOTCONTEXT_MNT) { in selinux_cmp_sb_context()
|
| /linux/fs/smb/client/ |
| H A D | connect.c | 2917 unsigned int oldflags = old->mnt_cifs_flags & CIFS_MOUNT_MASK; in compare_mount_options() local 2926 if (oldflags != newflags) in compare_mount_options()
|