Lines Matching refs:oldflags
526 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable() local
528 if (!(oldflags & EXT4_IMMUTABLE_FL) || !(flags & EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
531 if ((oldflags & ~EXT4_IMMUTABLE_FL) != (flags & ~EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
555 static bool dax_compatible(struct inode *inode, unsigned int oldflags, in dax_compatible() argument
561 oldflags &= ~EXT4_INLINE_DATA_FL; in dax_compatible()
565 if ((oldflags & EXT4_DAX_MUT_EXCL) || in dax_compatible()
572 if ((flags & EXT4_DAX_MUT_EXCL) && (oldflags & EXT4_DAX_FL)) in dax_compatible()
585 unsigned int oldflags, mask, i; in ext4_ioctl_setflags() local
592 oldflags = ei->i_flags; in ext4_ioctl_setflags()
597 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags()
602 if (!dax_compatible(inode, oldflags, flags)) { in ext4_ioctl_setflags()
607 if ((flags ^ oldflags) & EXT4_EXTENTS_FL) in ext4_ioctl_setflags()
610 if ((flags ^ oldflags) & EXT4_CASEFOLD_FL) { in ext4_ioctl_setflags()
677 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags()