aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-12-13 09:06:59 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commit7a7205367dfd9adf129f0ebc7d040a557fe0d1ba (patch)
tree67603e812a8f8a088d7a1334c41bf39ec6b5011d /fs/btrfs
parent76fea00a0522185658b733d441d6ec049344456b (diff)
Btrfs: Fix typo in .. check (thanks Yan)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 06d92be16805..41b0c7de7a59 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -857,7 +857,7 @@ static int btrfs_inode_by_name(struct inode *dir, struct dentry *dentry,
857 path = btrfs_alloc_path(); 857 path = btrfs_alloc_path();
858 BUG_ON(!path); 858 BUG_ON(!path);
859 859
860 if (namelen == 1 && strcmp(name, "..") == 0) { 860 if (namelen == 2 && strcmp(name, "..") == 0) {
861 struct btrfs_key key; 861 struct btrfs_key key;
862 struct extent_buffer *leaf; 862 struct extent_buffer *leaf;
863 u32 nritems; 863 u32 nritems;