]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/namei.c
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
[karo-tx-linux.git] / fs / namei.c
index 3d9d2f965f848d871cabb23c46dc0fa44a26cc25..1c0fca6e899eef7aa768ed704e2216c3d024c7df 100644 (file)
@@ -1656,7 +1656,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
                if (path->dentry->d_inode->i_op->follow_link)
                        return NULL;
                error = -ENOTDIR;
-               if (*want_dir & !path->dentry->d_inode->i_op->lookup)
+               if (*want_dir && !path->dentry->d_inode->i_op->lookup)
                        goto exit_dput;
                path_to_nameidata(path, nd);
                audit_inode(pathname, nd->path.dentry);
@@ -2544,7 +2544,7 @@ SYSCALL_DEFINE2(link, const char __user *, oldname, const char __user *, newname
  *     e) conversion from fhandle to dentry may come in the wrong moment - when
  *        we are removing the target. Solution: we will have to grab ->i_mutex
  *        in the fhandle_to_dentry code. [FIXME - current nfsfh.c relies on
- *        ->i_mutex on parents, which works but leads to some truely excessive
+ *        ->i_mutex on parents, which works but leads to some truly excessive
  *        locking].
  */
 static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry,