]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: use actual name length when find entry in ocfs2_orphan_del()
authorJoseph Qi <joseph.qi@huawei.com>
Tue, 7 Apr 2015 23:43:54 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:54 +0000 (09:43 +1000)
commitcdbffa4f2bc4294856178d12e8eb786149d2e9ba
tree41e44785b611a83288693d7217f7f7946f34091f
parent8b1e36cf74855e5a85b292411d0e4aa80b0deee0
ocfs2: use actual name length when find entry in ocfs2_orphan_del()

If the namelen is 20 and name only has actual length 16, it will fail in
ocfs2_find_entry because of mismatch.  So use actual name length when find
entry.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/namei.c