Lines Matching full:flags
20 /* Need to be kept consistent with checked flags in ioctl2ubifs() */
25 /* Need to be kept consistent with checked flags in ubifs2ioctl() */
30 * ubifs_set_inode_flags - set VFS inode flags.
31 * @inode: VFS inode to set flags for
33 * This function propagates flags from UBIFS inode object to VFS inode object.
37 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local
41 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags()
43 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags()
45 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags()
47 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags()
49 if (flags & UBIFS_CRYPT_FL) in ubifs_set_inode_flags()
54 * ioctl2ubifs - convert ioctl inode flags to UBIFS inode flags.
55 * @ioctl_flags: flags to convert
57 * This function converts ioctl flags (@FS_COMPR_FL, etc) to UBIFS inode flags
79 * ubifs2ioctl - convert UBIFS inode flags to ioctl inode flags.
80 * @ubifs_flags: flags to convert
82 * This function converts UBIFS inode flags (@UBIFS_COMPR_FL, etc) to ioctl
83 * flags (@FS_COMPR_FL, etc).
105 static int setflags(struct inode *inode, int flags) in setflags() argument
118 ui->flags &= ~ioctl2ubifs(UBIFS_SETTABLE_IOCTL_FLAGS); in setflags()
119 ui->flags |= ioctl2ubifs(flags); in setflags()
136 int flags = ubifs2ioctl(ubifs_inode(inode)->flags); in ubifs_fileattr_get() local
141 dbg_gen("get flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_fileattr_get()
142 fileattr_fill_flags(fa, flags); in ubifs_fileattr_get()
151 int flags = fa->flags; in ubifs_fileattr_set() local
159 if (flags & ~UBIFS_GETTABLE_IOCTL_FLAGS) in ubifs_fileattr_set()
162 flags &= UBIFS_SETTABLE_IOCTL_FLAGS; in ubifs_fileattr_set()
165 flags &= ~FS_DIRSYNC_FL; in ubifs_fileattr_set()
167 dbg_gen("set flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_fileattr_set()
168 return setflags(inode, flags); in ubifs_fileattr_set()