diff options
Diffstat (limited to 'fs/ecryptfs/file.c')
-rw-r--r-- | fs/ecryptfs/file.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index 95be9a90c504..c98c4690a771 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c | |||
@@ -141,34 +141,6 @@ retry: | |||
141 | 141 | ||
142 | struct kmem_cache *ecryptfs_file_info_cache; | 142 | struct kmem_cache *ecryptfs_file_info_cache; |
143 | 143 | ||
144 | int ecryptfs_open_lower_file(struct file **lower_file, | ||
145 | struct dentry *lower_dentry, | ||
146 | struct vfsmount *lower_mnt, int flags) | ||
147 | { | ||
148 | int rc = 0; | ||
149 | |||
150 | flags |= O_LARGEFILE; | ||
151 | dget(lower_dentry); | ||
152 | mntget(lower_mnt); | ||
153 | *lower_file = dentry_open(lower_dentry, lower_mnt, flags); | ||
154 | if (IS_ERR(*lower_file)) { | ||
155 | printk(KERN_ERR "Error opening lower file for lower_dentry " | ||
156 | "[0x%p], lower_mnt [0x%p], and flags [0x%x]\n", | ||
157 | lower_dentry, lower_mnt, flags); | ||
158 | rc = PTR_ERR(*lower_file); | ||
159 | *lower_file = NULL; | ||
160 | goto out; | ||
161 | } | ||
162 | out: | ||
163 | return rc; | ||
164 | } | ||
165 | |||
166 | int ecryptfs_close_lower_file(struct file *lower_file) | ||
167 | { | ||
168 | fput(lower_file); | ||
169 | return 0; | ||
170 | } | ||
171 | |||
172 | /** | 144 | /** |
173 | * ecryptfs_open | 145 | * ecryptfs_open |
174 | * @inode: inode speciying file to open | 146 | * @inode: inode speciying file to open |