From: Chris Mason Date: Thu, 13 Dec 2007 14:06:59 +0000 (-0500) Subject: Btrfs: Fix typo in .. check (thanks Yan) X-Git-Tag: firefly_0821_release~15789^2~11^2~55^2~56^2~30^2~382 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a7205367dfd9adf129f0ebc7d040a557fe0d1ba;p=firefly-linux-kernel-4.4.55.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 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, 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;