From: Adrian Hunter Date: Thu, 14 Aug 2008 08:57:45 +0000 (+0300) Subject: [JFFS2] Correct symlink name too long error code X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=bde86fec7c822b6009d3cfefc20b76b8d34716af;p=deliverable%2Flinux.git [JFFS2] Correct symlink name too long error code Signed-off-by: Adrian Hunter Signed-off-by: David Woodhouse --- diff --git a/fs/jffs2/dir.c b/fs/jffs2/dir.c index cd219ef55254..b1aaae823a52 100644 --- a/fs/jffs2/dir.c +++ b/fs/jffs2/dir.c @@ -311,7 +311,7 @@ static int jffs2_symlink (struct inode *dir_i, struct dentry *dentry, const char /* FIXME: If you care. We'd need to use frags for the target if it grows much more than this */ if (targetlen > 254) - return -EINVAL; + return -ENAMETOOLONG; ri = jffs2_alloc_raw_inode();