• Home
  • Raw
  • Download

Lines Matching refs:error

61 	int error;  in vfs_stat_fd()  local
63 error = user_path_at(dfd, name, LOOKUP_FOLLOW, &path); in vfs_stat_fd()
64 if (!error) { in vfs_stat_fd()
65 error = vfs_getattr(path.mnt, path.dentry, stat); in vfs_stat_fd()
68 return error; in vfs_stat_fd()
81 int error; in vfs_lstat_fd() local
83 error = user_path_at(dfd, name, 0, &path); in vfs_lstat_fd()
84 if (!error) { in vfs_lstat_fd()
85 error = vfs_getattr(path.mnt, path.dentry, stat); in vfs_lstat_fd()
88 return error; in vfs_lstat_fd()
101 int error = -EBADF; in vfs_fstat() local
104 error = vfs_getattr(f->f_path.mnt, f->f_path.dentry, stat); in vfs_fstat()
107 return error; in vfs_fstat()
158 int error = vfs_stat_fd(AT_FDCWD, filename, &stat); in SYSCALL_DEFINE2() local
160 if (!error) in SYSCALL_DEFINE2()
161 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
163 return error; in SYSCALL_DEFINE2()
169 int error = vfs_lstat_fd(AT_FDCWD, filename, &stat); in SYSCALL_DEFINE2() local
171 if (!error) in SYSCALL_DEFINE2()
172 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
174 return error; in SYSCALL_DEFINE2()
180 int error = vfs_fstat(fd, &stat); in SYSCALL_DEFINE2() local
182 if (!error) in SYSCALL_DEFINE2()
183 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2()
185 return error; in SYSCALL_DEFINE2()
243 int error = vfs_stat_fd(AT_FDCWD, filename, &stat); in SYSCALL_DEFINE2() local
245 if (!error) in SYSCALL_DEFINE2()
246 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
248 return error; in SYSCALL_DEFINE2()
254 int error = vfs_lstat_fd(AT_FDCWD, filename, &stat); in SYSCALL_DEFINE2() local
256 if (!error) in SYSCALL_DEFINE2()
257 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
259 return error; in SYSCALL_DEFINE2()
267 int error = -EINVAL; in SYSCALL_DEFINE4() local
273 error = vfs_lstat_fd(dfd, filename, &stat); in SYSCALL_DEFINE4()
275 error = vfs_stat_fd(dfd, filename, &stat); in SYSCALL_DEFINE4()
277 if (!error) in SYSCALL_DEFINE4()
278 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE4()
281 return error; in SYSCALL_DEFINE4()
288 int error = vfs_fstat(fd, &stat); in SYSCALL_DEFINE2() local
290 if (!error) in SYSCALL_DEFINE2()
291 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2()
293 return error; in SYSCALL_DEFINE2()
300 int error; in SYSCALL_DEFINE4() local
305 error = user_path_at(dfd, pathname, 0, &path); in SYSCALL_DEFINE4()
306 if (!error) { in SYSCALL_DEFINE4()
309 error = -EINVAL; in SYSCALL_DEFINE4()
311 error = security_inode_readlink(path.dentry); in SYSCALL_DEFINE4()
312 if (!error) { in SYSCALL_DEFINE4()
314 error = inode->i_op->readlink(path.dentry, in SYSCALL_DEFINE4()
320 return error; in SYSCALL_DEFINE4()
373 int error = vfs_stat(filename, &stat); in SYSCALL_DEFINE2() local
375 if (!error) in SYSCALL_DEFINE2()
376 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
378 return error; in SYSCALL_DEFINE2()
384 int error = vfs_lstat(filename, &stat); in SYSCALL_DEFINE2() local
386 if (!error) in SYSCALL_DEFINE2()
387 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
389 return error; in SYSCALL_DEFINE2()
395 int error = vfs_fstat(fd, &stat); in SYSCALL_DEFINE2() local
397 if (!error) in SYSCALL_DEFINE2()
398 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE2()
400 return error; in SYSCALL_DEFINE2()
407 int error = -EINVAL; in SYSCALL_DEFINE4() local
413 error = vfs_lstat_fd(dfd, filename, &stat); in SYSCALL_DEFINE4()
415 error = vfs_stat_fd(dfd, filename, &stat); in SYSCALL_DEFINE4()
417 if (!error) in SYSCALL_DEFINE4()
418 error = cp_new_stat64(&stat, statbuf); in SYSCALL_DEFINE4()
421 return error; in SYSCALL_DEFINE4()