Lines Matching refs:cf_mode
157 unlikely(inode_wrong_type(inode, fattr->cf_mode))) {
183 inode->i_mode = fattr->cf_mode;
214 if (S_ISLNK(fattr->cf_mode) && fattr->cf_symlink_target) {
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;
459 if (S_ISLNK(fattr->cf_mode) && !fattr->cf_symlink_target) {
522 fattr->cf_mode &= ~S_IFMT;
525 fattr->cf_mode |= S_IFIFO;
529 fattr->cf_mode |= S_IFREG;
572 fattr->cf_mode |= S_IFBLK;
584 fattr->cf_mode |= S_IFCHR;
596 fattr->cf_mode |= S_IFLNK;
600 fattr->cf_mode |= S_IFIFO;
603 fattr->cf_mode |= S_IFREG; /* file? */
608 fattr->cf_mode |= S_IFREG; /* then it is a file */
653 fattr->cf_mode &= ~SFBITS_MASK;
655 mode, fattr->cf_mode);
656 fattr->cf_mode = (mode & SFBITS_MASK) | fattr->cf_mode;
701 fattr->cf_mode = (umode_t) le32_to_cpu(info->Mode);
706 fattr->cf_mode |= S_IFLNK;
711 fattr->cf_mode |= S_IFDIR;
714 fattr->cf_mode |= S_IFREG;
723 fattr->cf_mode, fattr->cf_uniqueid, fattr->cf_nlink);
743 fattr->cf_mode |= S_IFCHR | cifs_sb->ctx->file_mode;
748 fattr->cf_mode |= S_IFBLK | cifs_sb->ctx->file_mode;
753 fattr->cf_mode |= S_IFIFO | cifs_sb->ctx->file_mode;
757 fattr->cf_mode |= S_IFSOCK | cifs_sb->ctx->file_mode;
761 fattr->cf_mode = S_IFLNK | cifs_sb->ctx->file_mode;
773 fattr->cf_mode |= S_IFLNK | cifs_sb->ctx->file_mode;
777 fattr->cf_mode |= S_IFIFO | cifs_sb->ctx->file_mode;
781 fattr->cf_mode |= S_IFSOCK | cifs_sb->ctx->file_mode;
785 fattr->cf_mode |= S_IFCHR | cifs_sb->ctx->file_mode;
789 fattr->cf_mode |= S_IFBLK | cifs_sb->ctx->file_mode;
795 fattr->cf_mode = S_IFLNK | cifs_sb->ctx->file_mode;
840 fattr->cf_mode = S_IFDIR | cifs_sb->ctx->dir_mode;
849 fattr->cf_mode = S_IFREG | cifs_sb->ctx->file_mode;
854 fattr->cf_mode &= ~(S_IWUGO);
869 if (S_ISLNK(fattr->cf_mode)) {
1402 if (inode_wrong_type(inode, fattr->cf_mode))