Home
last modified time | relevance | path

Searched refs:lower_file (Results 1 - 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/fs/sharefs/
H A Dfile.c17 struct file *lower_file = NULL; in sharefs_readdir() local
20 lower_file = sharefs_lower_file(file); in sharefs_readdir()
21 err = iterate_dir(lower_file, ctx); in sharefs_readdir()
22 file->f_pos = lower_file->f_pos; in sharefs_readdir()
25 file_inode(lower_file)); in sharefs_readdir()
32 struct file *lower_file = NULL; in sharefs_open() local
50 lower_file = dentry_open(&lower_path, file->f_flags, current_cred()); in sharefs_open()
52 if (IS_ERR(lower_file)) { in sharefs_open()
53 err = PTR_ERR(lower_file); in sharefs_open()
54 lower_file in sharefs_open()
81 struct file *lower_file = NULL; sharefs_flush() local
95 struct file *lower_file; sharefs_file_release() local
111 struct file *lower_file; sharefs_fsync() local
129 struct file *lower_file = NULL; sharefs_fasync() local
147 struct file *lower_file; sharefs_file_llseek() local
164 struct file *lower_file; sharefs_read_iter() local
194 struct file *lower_file; sharefs_write_iter() local
221 struct file *lower_file; sharefs_file_mmap() local
[all...]
H A Dsharefs.h44 struct file *lower_file; member
121 return SHAREFS_F(f)->lower_file; in sharefs_lower_file()
126 SHAREFS_F(f)->lower_file = val; in sharefs_set_lower_file()
/kernel/linux/linux-6.6/fs/sharefs/
H A Dfile.c17 struct file *lower_file = NULL; in sharefs_readdir() local
20 lower_file = sharefs_lower_file(file); in sharefs_readdir()
21 err = iterate_dir(lower_file, ctx); in sharefs_readdir()
22 file->f_pos = lower_file->f_pos; in sharefs_readdir()
25 file_inode(lower_file)); in sharefs_readdir()
32 struct file *lower_file = NULL; in sharefs_open() local
50 lower_file = dentry_open(&lower_path, file->f_flags, current_cred()); in sharefs_open()
52 if (IS_ERR(lower_file)) { in sharefs_open()
53 err = PTR_ERR(lower_file); in sharefs_open()
54 lower_file in sharefs_open()
81 struct file *lower_file = NULL; sharefs_flush() local
95 struct file *lower_file; sharefs_file_release() local
111 struct file *lower_file; sharefs_fsync() local
129 struct file *lower_file = NULL; sharefs_fasync() local
147 struct file *lower_file; sharefs_file_llseek() local
164 struct file *lower_file; sharefs_read_iter() local
194 struct file *lower_file; sharefs_write_iter() local
221 struct file *lower_file; sharefs_file_mmap() local
[all...]
H A Dsharefs.h45 struct file *lower_file; member
122 return SHAREFS_F(f)->lower_file; in sharefs_lower_file()
127 SHAREFS_F(f)->lower_file = val; in sharefs_set_lower_file()
/kernel/linux/linux-5.10/fs/ecryptfs/
H A Dfile.c104 struct file *lower_file; in ecryptfs_readdir() local
111 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
112 rc = iterate_dir(lower_file, &buf.ctx); in ecryptfs_readdir()
120 file_inode(lower_file)); in ecryptfs_readdir()
171 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap() local
177 if (!lower_file->f_op->mmap) in ecryptfs_mmap()
226 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) in ecryptfs_open()
234 file, ecryptfs_inode_to_private(inode)->lower_file); in ecryptfs_open()
266 struct file *lower_file; in ecryptfs_dir_open() local
276 lower_file in ecryptfs_dir_open()
292 struct file *lower_file = ecryptfs_file_to_lower(file); ecryptfs_flush() local
338 struct file *lower_file = NULL; ecryptfs_fasync() local
349 struct file *lower_file = ecryptfs_file_to_lower(file); ecryptfs_unlocked_ioctl() local
374 struct file *lower_file = ecryptfs_file_to_lower(file); ecryptfs_compat_ioctl() local
[all...]
H A Dkthread.c17 struct file **lower_file; member
62 *req->lower_file = dentry_open(&req->path, in ecryptfs_threadfn()
98 *req->lower_file = ERR_PTR(-EIO); in ecryptfs_destroy_kthread()
108 * @lower_file: Result of dentry_open by root on lower dentry
116 int ecryptfs_privileged_open(struct file **lower_file, in ecryptfs_privileged_open() argument
126 req.lower_file = lower_file; in ecryptfs_privileged_open()
134 (*lower_file) = dentry_open(&req.path, flags, cred); in ecryptfs_privileged_open()
135 if (!IS_ERR(*lower_file)) in ecryptfs_privileged_open()
138 rc = PTR_ERR((*lower_file)); in ecryptfs_privileged_open()
[all...]
H A Dread_write.c30 struct file *lower_file; in ecryptfs_write_lower() local
33 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_write_lower()
34 if (!lower_file) in ecryptfs_write_lower()
36 rc = kernel_write(lower_file, data, size, &offset); in ecryptfs_write_lower()
222 struct file *lower_file; in ecryptfs_read_lower() local
223 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_read_lower()
224 if (!lower_file) in ecryptfs_read_lower()
226 return kernel_read(lower_file, dat in ecryptfs_read_lower()
[all...]
H A Dsuper.c50 inode_info->lower_file = NULL; in ecryptfs_alloc_inode()
78 BUG_ON(inode_info->lower_file); in ecryptfs_destroy_inode()
H A Dmain.c105 struct file **lower_file) in ecryptfs_init_lower_file()
111 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file()
117 (*lower_file) = NULL; in ecryptfs_init_lower_file()
134 &inode_info->lower_file); in ecryptfs_get_lower_file()
150 fput(inode_info->lower_file); in ecryptfs_put_lower_file()
151 inode_info->lower_file = NULL; in ecryptfs_put_lower_file()
104 ecryptfs_init_lower_file(struct dentry *dentry, struct file **lower_file) ecryptfs_init_lower_file() argument
H A Decryptfs_kernel.h71 struct file *lower_file; member
257 struct file *lower_file; member
450 ecryptfs_set_file_lower(struct file *file, struct file *lower_file) in ecryptfs_set_file_lower() argument
453 lower_file; in ecryptfs_set_file_lower()
699 int ecryptfs_privileged_open(struct file **lower_file,
/kernel/linux/linux-6.6/fs/ecryptfs/
H A Dfile.c129 struct file *lower_file; in ecryptfs_readdir() local
136 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
137 rc = iterate_dir(lower_file, &buf.ctx); in ecryptfs_readdir()
140 fsstack_copy_attr_atime(inode, file_inode(lower_file)); in ecryptfs_readdir()
190 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap() local
196 if (!lower_file->f_op->mmap) in ecryptfs_mmap()
245 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) in ecryptfs_open()
253 file, ecryptfs_inode_to_private(inode)->lower_file); in ecryptfs_open()
285 struct file *lower_file; in ecryptfs_dir_open() local
295 lower_file in ecryptfs_dir_open()
311 struct file *lower_file = ecryptfs_file_to_lower(file); ecryptfs_flush() local
357 struct file *lower_file = NULL; ecryptfs_fasync() local
368 struct file *lower_file = ecryptfs_file_to_lower(file); ecryptfs_unlocked_ioctl() local
393 struct file *lower_file = ecryptfs_file_to_lower(file); ecryptfs_compat_ioctl() local
[all...]
H A Dkthread.c17 struct file **lower_file; member
62 *req->lower_file = dentry_open(&req->path, in ecryptfs_threadfn()
98 *req->lower_file = ERR_PTR(-EIO); in ecryptfs_destroy_kthread()
108 * @lower_file: Result of dentry_open by root on lower dentry
117 int ecryptfs_privileged_open(struct file **lower_file, in ecryptfs_privileged_open() argument
127 req.lower_file = lower_file; in ecryptfs_privileged_open()
135 (*lower_file) = dentry_open(&req.path, flags, cred); in ecryptfs_privileged_open()
136 if (!IS_ERR(*lower_file)) in ecryptfs_privileged_open()
139 rc = PTR_ERR((*lower_file)); in ecryptfs_privileged_open()
[all...]
H A Dread_write.c30 struct file *lower_file; in ecryptfs_write_lower() local
33 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_write_lower()
34 if (!lower_file) in ecryptfs_write_lower()
36 rc = kernel_write(lower_file, data, size, &offset); in ecryptfs_write_lower()
222 struct file *lower_file; in ecryptfs_read_lower() local
223 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_read_lower()
224 if (!lower_file) in ecryptfs_read_lower()
226 return kernel_read(lower_file, dat in ecryptfs_read_lower()
[all...]
H A Dsuper.c50 inode_info->lower_file = NULL; in ecryptfs_alloc_inode()
78 BUG_ON(inode_info->lower_file); in ecryptfs_destroy_inode()
H A Dmain.c105 struct file **lower_file) in ecryptfs_init_lower_file()
111 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file()
117 (*lower_file) = NULL; in ecryptfs_init_lower_file()
134 &inode_info->lower_file); in ecryptfs_get_lower_file()
150 fput(inode_info->lower_file); in ecryptfs_put_lower_file()
151 inode_info->lower_file = NULL; in ecryptfs_put_lower_file()
104 ecryptfs_init_lower_file(struct dentry *dentry, struct file **lower_file) ecryptfs_init_lower_file() argument
H A Decryptfs_kernel.h71 struct file *lower_file; member
257 struct file *lower_file; member
447 ecryptfs_set_file_lower(struct file *file, struct file *lower_file) in ecryptfs_set_file_lower() argument
450 lower_file; in ecryptfs_set_file_lower()
684 int ecryptfs_privileged_open(struct file **lower_file,
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dfile_local.c26 struct file *lower_file = NULL; in hmdfs_file_open_local() local
41 lower_file = dentry_open(&lower_path, file->f_flags | O_DIRECT, in hmdfs_file_open_local()
44 lower_file = dentry_open(&lower_path, file->f_flags, cred); in hmdfs_file_open_local()
46 if (IS_ERR(lower_file)) { in hmdfs_file_open_local()
47 err = PTR_ERR(lower_file); in hmdfs_file_open_local()
50 gfi->lower_file = lower_file; in hmdfs_file_open_local()
52 hmdfs_update_upper_file(file, lower_file); in hmdfs_file_open_local()
68 fput(gfi->lower_file); in hmdfs_file_release_local()
75 struct file *lower_file in hmdfs_file_accessed() local
89 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_do_read_iter() local
116 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_file_modified() local
132 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_do_write_iter() local
163 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_fsync_local() local
177 struct file *lower_file; hmdfs_file_llseek_local() local
235 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_iterate_local() local
255 struct file *lower_file = NULL; hmdfs_dir_open_local() local
[all...]
H A Dfile_merge.c351 lower_file_iter = fi_iter->lower_file; in hmdfs_iterate_merge()
385 struct file *lower_file = NULL; in do_dir_open_merge() local
408 lower_file = dentry_open(&lo_p, file->f_flags, cred); in do_dir_open_merge()
410 if (IS_ERR(lower_file)) { in do_dir_open_merge()
416 fi->lower_file = lower_file; in do_dir_open_merge()
456 fput(fi_iter->lower_file); in hmdfs_dir_release_merge()
475 struct file *lower_file = NULL; in hmdfs_dir_unlocked_ioctl_merge() local
484 lower_file = fi_iter->lower_file; in hmdfs_dir_unlocked_ioctl_merge()
501 struct file *lower_file = NULL; hmdfs_dir_compat_ioctl_merge() local
543 struct file *lower_file = NULL; hmdfs_file_open_merge() local
581 struct file *lower_file = gfi->lower_file; hmdfs_file_flush_merge() local
592 struct file *lower_file = gfi->lower_file; hmdfs_ioc_get_writeopen_cnt() local
[all...]
H A Dfile_cloud.c39 struct file *lower_file; in hmdfs_file_open_cloud() local
66 lower_file = file_open_root(&root_path, dir_path, in hmdfs_file_open_cloud()
69 if (IS_ERR(lower_file)) { in hmdfs_file_open_cloud()
70 hmdfs_info("file_open_root failed: %ld", PTR_ERR(lower_file)); in hmdfs_file_open_cloud()
71 err = PTR_ERR(lower_file); in hmdfs_file_open_cloud()
74 gfi->lower_file = lower_file; in hmdfs_file_open_cloud()
86 fput(gfi->lower_file); in hmdfs_file_release_cloud()
95 if(!gfi || !gfi->lower_file) in hmdfs_file_flush_cloud()
98 if (gfi->lower_file in hmdfs_file_flush_cloud()
240 struct file *lower_file; hmdfs_readpage() local
[all...]
H A Dhmdfs_share.c31 if (gfi->lower_file) in hmdfs_is_share_file()
32 cur_file = gfi->lower_file; in hmdfs_is_share_file()
H A Dinode.c348 void hmdfs_update_upper_file(struct file *upper_file, struct file *lower_file) in hmdfs_update_upper_file() argument
351 loff_t lower_size = i_size_read(lower_file->f_inode); in hmdfs_update_upper_file()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dfile_local.c26 struct file *lower_file = NULL; in hmdfs_file_open_local() local
41 lower_file = dentry_open(&lower_path, file->f_flags | O_DIRECT, in hmdfs_file_open_local()
44 lower_file = dentry_open(&lower_path, file->f_flags, cred); in hmdfs_file_open_local()
46 if (IS_ERR(lower_file)) { in hmdfs_file_open_local()
47 err = PTR_ERR(lower_file); in hmdfs_file_open_local()
50 gfi->lower_file = lower_file; in hmdfs_file_open_local()
52 hmdfs_update_upper_file(file, lower_file); in hmdfs_file_open_local()
68 fput(gfi->lower_file); in hmdfs_file_release_local()
75 struct file *lower_file in hmdfs_file_accessed() local
89 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_do_read_iter() local
116 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_file_modified() local
132 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_do_write_iter() local
163 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_fsync_local() local
177 struct file *lower_file; hmdfs_file_llseek_local() local
235 struct file *lower_file = hmdfs_f(file)->lower_file; hmdfs_iterate_local() local
255 struct file *lower_file = NULL; hmdfs_dir_open_local() local
[all...]
H A Dfile_merge.c356 lower_file_iter = fi_iter->lower_file; in hmdfs_iterate_merge()
390 struct file *lower_file = NULL; in do_dir_open_merge() local
413 lower_file = dentry_open(&lo_p, file->f_flags, cred); in do_dir_open_merge()
415 if (IS_ERR(lower_file)) { in do_dir_open_merge()
421 fi->lower_file = lower_file; in do_dir_open_merge()
461 fput(fi_iter->lower_file); in hmdfs_dir_release_merge()
480 struct file *lower_file = NULL; in hmdfs_dir_unlocked_ioctl_merge() local
489 lower_file = fi_iter->lower_file; in hmdfs_dir_unlocked_ioctl_merge()
506 struct file *lower_file = NULL; hmdfs_dir_compat_ioctl_merge() local
548 struct file *lower_file = NULL; hmdfs_file_open_merge() local
586 struct file *lower_file = gfi->lower_file; hmdfs_file_flush_merge() local
597 struct file *lower_file = gfi->lower_file; hmdfs_ioc_get_writeopen_cnt() local
[all...]
H A Dfile_cloud.c39 struct file *lower_file; in hmdfs_file_open_cloud() local
66 lower_file = file_open_root(&root_path, dir_path, in hmdfs_file_open_cloud()
69 if (IS_ERR(lower_file)) { in hmdfs_file_open_cloud()
70 hmdfs_info("file_open_root failed: %ld", PTR_ERR(lower_file)); in hmdfs_file_open_cloud()
71 err = PTR_ERR(lower_file); in hmdfs_file_open_cloud()
74 gfi->lower_file = lower_file; in hmdfs_file_open_cloud()
86 fput(gfi->lower_file); in hmdfs_file_release_cloud()
95 if(!gfi || !gfi->lower_file) in hmdfs_file_flush_cloud()
98 if (gfi->lower_file in hmdfs_file_flush_cloud()
239 struct file *lower_file; hmdfs_readpage() local
[all...]
H A Dhmdfs_share.c31 if (gfi->lower_file) in hmdfs_is_share_file()
32 cur_file = gfi->lower_file; in hmdfs_is_share_file()

Completed in 17 milliseconds

12