diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-06-24 10:50:16 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-26 20:53:18 -0400 |
commit | db2e747b14991a4c6a5c98b0e5f552a193237c03 (patch) | |
tree | 8850e8ef9e1a7bb3d7bbc051f191cd8350093564 /fs/namei.c | |
parent | 7e79eedb3b22200cc8b774baea3a7bf28d766101 (diff) |
[patch 5/5] vfs: remove mode parameter from vfs_symlink()
Remove the unused mode parameter from vfs_symlink and callers.
Thanks to Tetsuo Handa for noticing.
CC: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c index 3b67be7631dc..ae0e56fdb742 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2434,7 +2434,7 @@ asmlinkage long sys_unlink(const char __user *pathname) | |||
2434 | return do_unlinkat(AT_FDCWD, pathname); | 2434 | return do_unlinkat(AT_FDCWD, pathname); |
2435 | } | 2435 | } |
2436 | 2436 | ||
2437 | int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname, int mode) | 2437 | int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname) |
2438 | { | 2438 | { |
2439 | int error = may_create(dir, dentry, NULL); | 2439 | int error = may_create(dir, dentry, NULL); |
2440 | 2440 | ||
@@ -2483,7 +2483,7 @@ asmlinkage long sys_symlinkat(const char __user *oldname, | |||
2483 | error = mnt_want_write(nd.path.mnt); | 2483 | error = mnt_want_write(nd.path.mnt); |
2484 | if (error) | 2484 | if (error) |
2485 | goto out_dput; | 2485 | goto out_dput; |
2486 | error = vfs_symlink(nd.path.dentry->d_inode, dentry, from, S_IALLUGO); | 2486 | error = vfs_symlink(nd.path.dentry->d_inode, dentry, from); |
2487 | mnt_drop_write(nd.path.mnt); | 2487 | mnt_drop_write(nd.path.mnt); |
2488 | out_dput: | 2488 | out_dput: |
2489 | dput(dentry); | 2489 | dput(dentry); |