Lines Matching refs:flags
40 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local
43 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags()
45 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags()
47 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags()
49 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags()
103 static int setflags(struct inode *inode, int flags) in setflags() argument
120 oldflags = ubifs2ioctl(ui->flags); in setflags()
121 if ((flags ^ oldflags) & (FS_APPEND_FL | FS_IMMUTABLE_FL)) { in setflags()
128 ui->flags = ioctl2ubifs(flags); in setflags()
150 int flags, err; in ubifs_ioctl() local
155 flags = ubifs2ioctl(ubifs_inode(inode)->flags); in ubifs_ioctl()
157 dbg_gen("get flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_ioctl()
158 return put_user(flags, (int __user *) arg); in ubifs_ioctl()
167 if (get_user(flags, (int __user *) arg)) in ubifs_ioctl()
171 flags &= ~FS_DIRSYNC_FL; in ubifs_ioctl()
180 dbg_gen("set flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_ioctl()
181 err = setflags(inode, flags); in ubifs_ioctl()