]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Sync up a couple of trivial kernel changes with libxfs.
authorNathan Scott <nathans@sgi.com>
Wed, 18 Dec 2002 06:31:29 +0000 (06:31 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 18 Dec 2002 06:31:29 +0000 (06:31 +0000)
libxfs/xfs_dir.c
libxfs/xfs_dir2.c

index b890a3f1e3e3a3411542973f6f99c1abfa082545..052f1f0c1b797488a7ab4b5e134e644665b3651f 100644 (file)
@@ -218,9 +218,6 @@ xfs_dir_lookup(xfs_trans_t *trans, xfs_inode_t *dp, char *name, int namelen,
        int retval;
 
        ASSERT((dp->i_d.di_mode & IFMT) == IFDIR);
-       if (namelen >= MAXNAMELEN) {
-               return(XFS_ERROR(EINVAL));
-       }
 
        XFS_STATS_INC(xfsstats.xs_dir_lookup);
        /*
@@ -264,9 +261,6 @@ xfs_dir_replace(xfs_trans_t *trans, xfs_inode_t *dp, char *name, int namelen,
        int retval;
 
        ASSERT((dp->i_d.di_mode & IFMT) == IFDIR);
-       if (namelen >= MAXNAMELEN) {
-               return(XFS_ERROR(EINVAL));
-       }
 
        if ((retval = xfs_dir_ino_validate(trans->t_mountp, inum)))
                return retval;
index b923b30da02d7b8c87ac0b61c7e79c35ff410ea7..a82f2cee4d69aa12360699daf15484de22f0df18 100644 (file)
@@ -156,10 +156,8 @@ xfs_dir2_lookup(
        int             v;              /* type-checking value */
 
        ASSERT((dp->i_d.di_mode & IFMT) == IFDIR);
-       if (namelen >= MAXNAMELEN) {
-               return XFS_ERROR(EINVAL);
-       }
        XFS_STATS_INC(xfsstats.xs_dir_lookup);
+
        /*
         * Fill in the arg structure for this request.
         */
@@ -268,9 +266,7 @@ xfs_dir2_replace(
        int             v;              /* type-checking value */
 
        ASSERT((dp->i_d.di_mode & IFMT) == IFDIR);
-       if (namelen >= MAXNAMELEN) {
-               return XFS_ERROR(EINVAL);
-       }
+
        if ((rval = xfs_dir_ino_validate(tp->t_mountp, inum))) {
                return rval;
        }