Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kill ecryptfs_create_underlying_file()

it's a just a wrapper for vfs_create()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 18cb1b08 43947514

+1 -20
+1 -20
fs/ecryptfs/inode.c
··· 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 147 * ecryptfs_do_create 166 148 * @directory_inode: inode of the new file's dentry's parent in ecryptfs 167 149 * @ecryptfs_dentry: New file's dentry in ecryptfs ··· 173 191 inode = ERR_CAST(lower_dir_dentry); 174 192 goto out; 175 193 } 176 - rc = ecryptfs_create_underlying_file(lower_dir_dentry->d_inode, 177 - ecryptfs_dentry, mode); 194 + rc = vfs_create(lower_dir_dentry->d_inode, lower_dentry, mode, NULL); 178 195 if (rc) { 179 196 printk(KERN_ERR "%s: Failure to create dentry in lower fs; " 180 197 "rc = [%d]\n", __func__, rc);