提交 7a720536 编写于 作者: C Chris Mason

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

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 76fea00a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册