Lines Matching refs:rc
35 ssize_t rc; in ecryptfs_read_update_atime() local
39 rc = generic_file_read_iter(iocb, to); in ecryptfs_read_update_atime()
40 if (rc >= 0) { in ecryptfs_read_update_atime()
44 return rc; in ecryptfs_read_update_atime()
64 int rc; in ecryptfs_filldir() local
67 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir()
70 if (rc) { in ecryptfs_filldir()
71 if (rc != -EINVAL) { in ecryptfs_filldir()
74 __func__, lower_name, rc); in ecryptfs_filldir()
75 return rc; in ecryptfs_filldir()
88 rc = !dir_emit(buf->caller, name, name_size, ino, d_type); in ecryptfs_filldir()
90 if (!rc) in ecryptfs_filldir()
93 return rc; in ecryptfs_filldir()
103 int rc; in ecryptfs_readdir() local
112 rc = iterate_dir(lower_file, &buf.ctx); in ecryptfs_readdir()
114 if (rc < 0) in ecryptfs_readdir()
118 if (rc >= 0) in ecryptfs_readdir()
122 return rc; in ecryptfs_readdir()
132 int rc; in read_or_initialize_metadata() local
141 rc = 0; in read_or_initialize_metadata()
145 rc = ecryptfs_read_metadata(dentry); in read_or_initialize_metadata()
146 if (!rc) in read_or_initialize_metadata()
152 rc = 0; in read_or_initialize_metadata()
158 rc = ecryptfs_initialize_file(dentry, inode); in read_or_initialize_metadata()
159 if (!rc) in read_or_initialize_metadata()
163 rc = -EIO; in read_or_initialize_metadata()
166 return rc; in read_or_initialize_metadata()
193 int rc = 0; in ecryptfs_open() local
206 rc = -ENOMEM; in ecryptfs_open()
218 rc = ecryptfs_get_lower_file(ecryptfs_dentry, inode); in ecryptfs_open()
219 if (rc) { in ecryptfs_open()
223 ecryptfs_dentry, rc); in ecryptfs_open()
228 rc = -EPERM; in ecryptfs_open()
235 rc = read_or_initialize_metadata(ecryptfs_dentry); in ecryptfs_open()
236 if (rc) in ecryptfs_open()
248 return rc; in ecryptfs_open()
326 int rc; in ecryptfs_fsync() local
328 rc = file_write_and_wait(file); in ecryptfs_fsync()
329 if (rc) in ecryptfs_fsync()
330 return rc; in ecryptfs_fsync()
337 int rc = 0; in ecryptfs_fasync() local
342 rc = lower_file->f_op->fasync(fd, lower_file, flag); in ecryptfs_fasync()
343 return rc; in ecryptfs_fasync()
350 long rc = -ENOTTY; in ecryptfs_unlocked_ioctl() local
353 return rc; in ecryptfs_unlocked_ioctl()
361 rc = lower_file->f_op->unlocked_ioctl(lower_file, cmd, arg); in ecryptfs_unlocked_ioctl()
364 return rc; in ecryptfs_unlocked_ioctl()
366 return rc; in ecryptfs_unlocked_ioctl()
375 long rc = -ENOIOCTLCMD; in ecryptfs_compat_ioctl() local
378 return rc; in ecryptfs_compat_ioctl()
385 rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg); in ecryptfs_compat_ioctl()
388 return rc; in ecryptfs_compat_ioctl()
390 return rc; in ecryptfs_compat_ioctl()