diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 13:47:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:57 -0500 |
commit | 18cb1b08d2e1ff6907130fc0ce78a5912efa0ba5 (patch) | |
tree | fa29fc26d30be50c8f03071b0eab870b2fad8d2a /fs/ecryptfs/inode.c | |
parent | 439475140bed762c04567c325d48409862341ae4 (diff) |
kill ecryptfs_create_underlying_file()
it's a just a wrapper for vfs_create()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs/inode.c')
-rw-r--r-- | fs/ecryptfs/inode.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index be20cbfca7e9..13303830ec8b 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
@@ -144,24 +144,6 @@ static int ecryptfs_interpose(struct dentry *lower_dentry, | |||
144 | } | 144 | } |
145 | 145 | ||
146 | /** | 146 | /** |
147 | * ecryptfs_create_underlying_file | ||
148 | * @lower_dir_inode: inode of the parent in the lower fs of the new file | ||
149 | * @dentry: New file's dentry | ||
150 | * @mode: The mode of the new file | ||
151 | * | ||
152 | * Creates the file in the lower file system. | ||
153 | * | ||
154 | * Returns zero on success; non-zero on error condition | ||
155 | */ | ||
156 | static int | ||
157 | ecryptfs_create_underlying_file(struct inode *lower_dir_inode, | ||
158 | struct dentry *dentry, int mode) | ||
159 | { | ||
160 | struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); | ||
161 | return vfs_create(lower_dir_inode, lower_dentry, mode, NULL); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * ecryptfs_do_create | 147 | * ecryptfs_do_create |
166 | * @directory_inode: inode of the new file's dentry's parent in ecryptfs | 148 | * @directory_inode: inode of the new file's dentry's parent in ecryptfs |
167 | * @ecryptfs_dentry: New file's dentry in ecryptfs | 149 | * @ecryptfs_dentry: New file's dentry in ecryptfs |
@@ -191,8 +173,7 @@ ecryptfs_do_create(struct inode *directory_inode, | |||
191 | inode = ERR_CAST(lower_dir_dentry); | 173 | inode = ERR_CAST(lower_dir_dentry); |
192 | goto out; | 174 | goto out; |
193 | } | 175 | } |
194 | rc = ecryptfs_create_underlying_file(lower_dir_dentry->d_inode, | 176 | rc = vfs_create(lower_dir_dentry->d_inode, lower_dentry, mode, NULL); |
195 | ecryptfs_dentry, mode); | ||
196 | if (rc) { | 177 | if (rc) { |
197 | printk(KERN_ERR "%s: Failure to create dentry in lower fs; " | 178 | printk(KERN_ERR "%s: Failure to create dentry in lower fs; " |
198 | "rc = [%d]\n", __func__, rc); | 179 | "rc = [%d]\n", __func__, rc); |