Commit 9707269f authored by Dave Kleikamp's avatar Dave Kleikamp

Remove redundant test from jfs_link

parent 4c90dae9
...@@ -818,12 +818,6 @@ int jfs_link(struct dentry *old_dentry, ...@@ -818,12 +818,6 @@ int jfs_link(struct dentry *old_dentry,
jFYI(1, jFYI(1,
("jfs_link: %s %s\n", old_dentry->d_name.name, ("jfs_link: %s %s\n", old_dentry->d_name.name,
dentry->d_name.name)); dentry->d_name.name));
/* The checks for links between filesystems and permissions are
handled by the VFS layer */
/* JFS does NOT support link() on directories */
if (S_ISDIR(ip->i_mode))
return -EPERM;
IWRITE_LOCK_LIST(2, dir, ip); IWRITE_LOCK_LIST(2, dir, ip);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment