Browse Source

Btrfs: Fix typo in .. check (thanks Yan)

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Chris Mason 17 years ago
parent
commit
7a7205367d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/btrfs/inode.c

+ 1 - 1
fs/btrfs/inode.c

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