Lines Matching refs:mode
54 umode_t mode; member
67 umode_t mode, char *name) in find_link() argument
77 if (((*p)->mode ^ mode) & S_IFMT) in find_link()
87 q->mode = mode; in find_link()
151 static __initdata umode_t mode; variable
169 mode = parsed[1]; in parse_header()
261 if (S_ISLNK(mode)) { in do_header()
270 if (S_ISREG(mode) || !body_len) in do_header()
301 (st.mode ^ fmode) & S_IFMT) { in clean_path()
302 if (S_ISDIR(st.mode)) in clean_path()
312 char *old = find_link(major, minor, ino, mode, collected); in maybe_link()
332 clean_path(collected, mode); in do_name()
333 if (S_ISREG(mode)) { in do_name()
339 wfile = filp_open(collected, openflags, mode); in do_name()
345 vfs_fchmod(wfile, mode); in do_name()
350 } else if (S_ISDIR(mode)) { in do_name()
351 init_mkdir(collected, mode); in do_name()
353 init_chmod(collected, mode); in do_name()
355 } else if (S_ISBLK(mode) || S_ISCHR(mode) || in do_name()
356 S_ISFIFO(mode) || S_ISSOCK(mode)) { in do_name()
358 init_mknod(collected, mode, rdev); in do_name()
360 init_chmod(collected, mode); in do_name()