Lines Matching refs:oldflags
287 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable() local
289 if (!(oldflags & EXT4_IMMUTABLE_FL) || !(flags & EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
292 if ((oldflags & ~EXT4_IMMUTABLE_FL) != (flags & ~EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
316 static bool dax_compatible(struct inode *inode, unsigned int oldflags, in dax_compatible() argument
322 oldflags &= ~EXT4_INLINE_DATA_FL; in dax_compatible()
326 if ((oldflags & EXT4_DAX_MUT_EXCL) || in dax_compatible()
333 if ((flags & EXT4_DAX_MUT_EXCL) && (oldflags & EXT4_DAX_FL)) in dax_compatible()
346 unsigned int oldflags, mask, i; in ext4_ioctl_setflags() local
353 oldflags = ei->i_flags; in ext4_ioctl_setflags()
358 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags()
363 if (!dax_compatible(inode, oldflags, flags)) { in ext4_ioctl_setflags()
368 if ((flags ^ oldflags) & EXT4_EXTENTS_FL) in ext4_ioctl_setflags()
371 if ((flags ^ oldflags) & EXT4_CASEFOLD_FL) { in ext4_ioctl_setflags()
437 if ((flags ^ oldflags) & (EXT4_JOURNAL_DATA_FL)) { in ext4_ioctl_setflags()