Lines Matching refs:cf_mode
158 unlikely(inode_wrong_type(inode, fattr->cf_mode))) {
184 inode->i_mode = fattr->cf_mode;
214 if (S_ISLNK(fattr->cf_mode)) {
254 fattr->cf_mode = le64_to_cpu(info->Permissions);
260 fattr->cf_mode &= ~S_IFMT;
263 fattr->cf_mode |= S_IFREG;
267 fattr->cf_mode |= S_IFLNK;
271 fattr->cf_mode |= S_IFDIR;
275 fattr->cf_mode |= S_IFCHR;
281 fattr->cf_mode |= S_IFBLK;
287 fattr->cf_mode |= S_IFIFO;
291 fattr->cf_mode |= S_IFSOCK;
296 fattr->cf_mode |= S_IFREG;
340 fattr->cf_mode = S_IFDIR | S_IXUGO | S_IRWXU;
431 if (S_ISLNK(fattr.cf_mode) && !fattr.cf_symlink_target) {
494 fattr->cf_mode &= ~S_IFMT;
497 fattr->cf_mode |= S_IFIFO;
501 fattr->cf_mode |= S_IFREG;
543 fattr->cf_mode |= S_IFBLK;
555 fattr->cf_mode |= S_IFCHR;
567 fattr->cf_mode |= S_IFLNK;
570 fattr->cf_mode |= S_IFREG; /* file? */
575 fattr->cf_mode |= S_IFREG; /* then it is a file */
620 fattr->cf_mode &= ~SFBITS_MASK;
622 mode, fattr->cf_mode);
623 fattr->cf_mode = (mode & SFBITS_MASK) | fattr->cf_mode;
665 fattr->cf_mode = (umode_t) le32_to_cpu(info->Mode);
670 fattr->cf_mode |= S_IFLNK;
675 fattr->cf_mode |= S_IFDIR;
678 fattr->cf_mode |= S_IFREG;
687 fattr->cf_mode, fattr->cf_uniqueid, fattr->cf_nlink);
722 fattr->cf_mode |= S_IFLNK | cifs_sb->ctx->file_mode;
725 fattr->cf_mode |= S_IFIFO | cifs_sb->ctx->file_mode;
728 fattr->cf_mode |= S_IFSOCK | cifs_sb->ctx->file_mode;
731 fattr->cf_mode |= S_IFCHR | cifs_sb->ctx->file_mode;
734 fattr->cf_mode |= S_IFBLK | cifs_sb->ctx->file_mode;
738 fattr->cf_mode = S_IFLNK;
741 fattr->cf_mode = S_IFDIR | cifs_sb->ctx->dir_mode;
750 fattr->cf_mode = S_IFREG | cifs_sb->ctx->file_mode;
755 fattr->cf_mode &= ~(S_IWUGO);
769 if (S_ISLNK(fattr->cf_mode)) {
1285 if (inode_wrong_type(inode, fattr->cf_mode))