Home
last modified time | relevance | path

Searched refs:oldflags (Results 1 – 12 of 12) sorted by relevance

/fs/ext2/
Dioctl.c36 unsigned int oldflags; in ext2_ioctl() local
61 oldflags = ei->i_flags; in ext2_ioctl()
63 ret = vfs_ioc_setflags_prepare(inode, oldflags, flags); in ext2_ioctl()
70 flags |= oldflags & ~EXT2_FL_USER_MODIFIABLE; in ext2_ioctl()
/fs/ext4/
Dioctl.c285 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable() local
287 if (!(oldflags & EXT4_IMMUTABLE_FL) || !(flags & EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
290 if ((oldflags & ~EXT4_IMMUTABLE_FL) != (flags & ~EXT4_IMMUTABLE_FL)) in ext4_ioctl_check_immutable()
314 static bool dax_compatible(struct inode *inode, unsigned int oldflags, in dax_compatible() argument
320 oldflags &= ~EXT4_INLINE_DATA_FL; in dax_compatible()
324 if ((oldflags & EXT4_DAX_MUT_EXCL) || in dax_compatible()
331 if ((flags & EXT4_DAX_MUT_EXCL) && (oldflags & EXT4_DAX_FL)) in dax_compatible()
344 unsigned int oldflags, mask, i; in ext4_ioctl_setflags() local
351 oldflags = ei->i_flags; in ext4_ioctl_setflags()
353 err = vfs_ioc_setflags_prepare(inode, oldflags, flags); in ext4_ioctl_setflags()
[all …]
/fs/jfs/
Dioctl.c72 unsigned int oldflags; in jfs_ioctl() local
101 oldflags = jfs_map_ext2(jfs_inode->mode2 & JFS_FL_USER_VISIBLE, in jfs_ioctl()
103 err = vfs_ioc_setflags_prepare(inode, oldflags, flags); in jfs_ioctl()
/fs/ubifs/
Dioctl.c106 int oldflags, err, release; in setflags() local
117 oldflags = ubifs2ioctl(ui->flags); in setflags()
118 err = vfs_ioc_setflags_prepare(inode, oldflags, flags); in setflags()
/fs/hfsplus/
Dioctl.c87 unsigned int oldflags = hfsplus_getflags(inode); in hfsplus_ioctl_setflags() local
106 err = vfs_ioc_setflags_prepare(inode, oldflags, flags); in hfsplus_ioctl_setflags()
/fs/efivarfs/
Dfile.c137 unsigned int oldflags = efivarfs_getflags(inode); in efivarfs_ioc_setxflags() local
159 error = vfs_ioc_setflags_prepare(inode, oldflags, flags); in efivarfs_ioc_setxflags()
/fs/crypto/
Dhooks.c140 unsigned int oldflags, unsigned int flags) in fscrypt_prepare_setflags() argument
151 if (IS_ENCRYPTED(inode) && (flags & ~oldflags & FS_CASEFOLD_FL)) { in fscrypt_prepare_setflags()
/fs/ocfs2/
Dioctl.c87 unsigned oldflags; in ocfs2_set_inode_attr() local
105 oldflags = ocfs2_inode->ip_attr; in ocfs2_set_inode_attr()
107 flags |= oldflags & ~mask; in ocfs2_set_inode_attr()
109 status = vfs_ioc_setflags_prepare(inode, oldflags, flags); in ocfs2_set_inode_attr()
/fs/nilfs2/
Dioctl.c132 unsigned int flags, oldflags; in nilfs_ioctl_setflags() local
149 oldflags = NILFS_I(inode)->i_flags; in nilfs_ioctl_setflags()
151 ret = vfs_ioc_setflags_prepare(inode, oldflags, flags); in nilfs_ioctl_setflags()
159 NILFS_I(inode)->i_flags = (oldflags & ~FS_FL_USER_MODIFIABLE) | in nilfs_ioctl_setflags()
/fs/gfs2/
Dfile.c225 u32 new_flags, flags, oldflags; in do_gfs2_set_flags() local
235 oldflags = gfs2_gfsflags_to_fsflags(inode, ip->i_diskflags); in do_gfs2_set_flags()
236 error = vfs_ioc_setflags_prepare(inode, oldflags, fsflags); in do_gfs2_set_flags()
/fs/
Dinode.c2316 int vfs_ioc_setflags_prepare(struct inode *inode, unsigned int oldflags, in vfs_ioc_setflags_prepare() argument
2325 if ((flags ^ oldflags) & (FS_APPEND_FL | FS_IMMUTABLE_FL) && in vfs_ioc_setflags_prepare()
2329 return fscrypt_prepare_setflags(inode, oldflags, flags); in vfs_ioc_setflags_prepare()
/fs/cifs/
Dconnect.c3450 unsigned int oldflags = old->mnt_cifs_flags & CIFS_MOUNT_MASK; in compare_mount_options() local
3459 if (oldflags != newflags) in compare_mount_options()