Lines Matching refs:oldflags
524 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable() local
526 if (!(oldflags & EXT4_IMMUTABLE_FL) || !(flags & EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
529 if ((oldflags & ~EXT4_IMMUTABLE_FL) != (flags & ~EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
553 static bool dax_compatible(struct inode *inode, unsigned int oldflags, in dax_compatible() argument
559 oldflags &= ~EXT4_INLINE_DATA_FL; in dax_compatible()
563 if ((oldflags & EXT4_DAX_MUT_EXCL) || in dax_compatible()
570 if ((flags & EXT4_DAX_MUT_EXCL) && (oldflags & EXT4_DAX_FL)) in dax_compatible()
583 unsigned int oldflags, mask, i; in ext4_ioctl_setflags() local
590 oldflags = ei->i_flags; in ext4_ioctl_setflags()
595 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags()
600 if (!dax_compatible(inode, oldflags, flags)) { in ext4_ioctl_setflags()
605 if ((flags ^ oldflags) & EXT4_EXTENTS_FL) in ext4_ioctl_setflags()
608 if ((flags ^ oldflags) & EXT4_CASEFOLD_FL) { in ext4_ioctl_setflags()
675 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags()