Lines Matching refs:i_mode
84 inode->i_mode = server->m.dir_mode; in ncp_update_inode2()
87 inode->i_mode = server->m.file_mode; in ncp_update_inode2()
96 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_update_inode2()
103 inode->i_mode |= 0444; in ncp_update_inode2()
107 inode->i_mode |= (inode->i_mode >> 2) & 0111; in ncp_update_inode2()
117 if (nwi->attributes & aRONLY) inode->i_mode &= ~0222; in ncp_update_inode2()
141 inode->i_mode = server->m.dir_mode; in ncp_set_attr()
146 inode->i_mode = server->m.file_mode; in ncp_set_attr()
156 inode->i_mode = (inode->i_mode & ~S_IFMT) | S_IFLNK; in ncp_set_attr()
163 inode->i_mode |= 0444; in ncp_set_attr()
167 inode->i_mode |= (inode->i_mode >> 2) & 0111; in ncp_set_attr()
177 if (nwi->attributes & aRONLY) inode->i_mode &= ~0222; in ncp_set_attr()
179 DDPRINTK("ncp_read_inode: inode->i_mode = %u\n", inode->i_mode); in ncp_set_attr()
224 if (S_ISREG(inode->i_mode)) { in ncp_iget()
227 } else if (S_ISDIR(inode->i_mode)) { in ncp_iget()
231 } else if (S_ISLNK(inode->i_mode)) { in ncp_iget()
245 if (S_ISDIR(inode->i_mode)) { in ncp_delete_inode()
319 if (!S_ISSOCK(sock_inode->i_mode)) in ncp_read_super()
586 if (S_ISDIR(inode->i_mode)) { in ncp_notify_change()
597 } else if (!S_ISREG(inode->i_mode)) in ncp_notify_change()