]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: Fix typo in .. check (thanks Yan)
authorChris Mason <chris.mason@oracle.com>
Thu, 13 Dec 2007 14:06:59 +0000 (09:06 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:58 +0000 (11:03 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

index 06d92be16805bc8ae04f7c5184850d592b765aa2..41b0c7de7a5916570183e8ed100177c58030e426 100644 (file)
@@ -857,7 +857,7 @@ static int btrfs_inode_by_name(struct inode *dir, struct dentry *dentry,
        path = btrfs_alloc_path();
        BUG_ON(!path);
 
-       if (namelen == 1 && strcmp(name, "..") == 0) {
+       if (namelen == 2 && strcmp(name, "..") == 0) {
                struct btrfs_key key;
                struct extent_buffer *leaf;
                u32 nritems;