From: Chris Mason Date: Thu, 13 Dec 2007 14:06:59 +0000 (-0500) Subject: Btrfs: Fix typo in .. check (thanks Yan) X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~382 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=7a7205367dfd9adf129f0ebc7d040a557fe0d1ba;p=linux-2.6-omap-h63xx.git Btrfs: Fix typo in .. check (thanks Yan) Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 06d92be1680..41b0c7de7a5 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, 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;