Lines Matching defs:mode

115 		attr->mode = (attr->mode & ~EVENTFS_MODE_MASK) |
120 attr->mode |= EVENTFS_SAVE_UID;
124 attr->mode |= EVENTFS_SAVE_GID;
145 /* Preallocate the children mode array if necessary */
163 * mode is saved in the ei->m_children, and the ownership is
171 * Do not update it. It's not used for its own mode or ownership.
176 ei->attr.mode |= EVENTFS_SAVE_UID;
178 ei->attr.mode |= EVENTFS_SAVE_GID;
204 if (!ei || !(ei->attr.mode & EVENTFS_TOPLEVEL))
219 if (!ei || !ei->is_events || !(ei->attr.mode & EVENTFS_TOPLEVEL))
224 if (!(ei->attr.mode & EVENTFS_SAVE_UID))
227 if (!(ei->attr.mode & EVENTFS_SAVE_GID))
296 struct eventfs_attr *attr, umode_t mode)
303 inode->i_mode = mode;
310 if (attr->mode & EVENTFS_SAVE_MODE)
311 inode->i_mode = attr->mode & EVENTFS_MODE_MASK;
313 if (attr->mode & EVENTFS_SAVE_UID)
316 if (attr->mode & EVENTFS_SAVE_GID)
323 * @mode: the permission that the file should have.
334 umode_t mode,
342 if (!(mode & S_IFMT))
343 mode |= S_IFREG;
345 if (WARN_ON_ONCE(!S_ISREG(mode)))
353 update_inode_attr(dentry, inode, attr, mode);
444 * @mode: The mode of the file.
454 umode_t mode, void *data,
462 return lookup_file(ei, dentry, mode, attr, data, fops);
506 umode_t mode;
514 if (entry->callback(name, &mode, &data, &fops) <= 0)
517 result = lookup_file_dentry(dentry, ei, i, mode, data, fops);
537 umode_t mode;
582 r = entry->callback(name, &mode, &cdata, &fops);
648 * int callback(const char *name, umode_t *mode, void **data,
654 * mode = a place to set the file's mode
745 * is NULL. Set the attr.mode to reflect this and its permissions will
749 ei->attr.mode = EVENTFS_TOPLEVEL;