Lines Matching refs:flags
32 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local
36 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags()
38 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags()
40 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags()
42 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags()
44 if (flags & UBIFS_CRYPT_FL) in ubifs_set_inode_flags()
98 static int setflags(struct inode *inode, int flags) in setflags() argument
111 oldflags = ubifs2ioctl(ui->flags); in setflags()
112 err = vfs_ioc_setflags_prepare(inode, oldflags, flags); in setflags()
116 ui->flags = ioctl2ubifs(flags); in setflags()
138 int flags, err; in ubifs_ioctl() local
143 flags = ubifs2ioctl(ubifs_inode(inode)->flags); in ubifs_ioctl()
145 dbg_gen("get flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_ioctl()
146 return put_user(flags, (int __user *) arg); in ubifs_ioctl()
155 if (get_user(flags, (int __user *) arg)) in ubifs_ioctl()
158 if (flags & ~UBIFS_SUPPORTED_IOCTL_FLAGS) in ubifs_ioctl()
162 flags &= ~FS_DIRSYNC_FL; in ubifs_ioctl()
171 dbg_gen("set flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_ioctl()
172 err = setflags(inode, flags); in ubifs_ioctl()