From: Jan Kara Date: Fri, 29 Mar 2013 14:39:16 +0000 (+0100) Subject: reiserfs: Fix warning and inode leak when deleting inode with xattrs X-Git-Tag: v3.2.43~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d4fee47534112e0e39e91268a89c8cb35c5a69d;p=pandora-kernel.git reiserfs: Fix warning and inode leak when deleting inode with xattrs commit 35e5cbc0af240778e61113286c019837e06aeec6 upstream. After commit 21d8a15a (lookup_one_len: don't accept . and ..) reiserfs started failing to delete xattrs from inode. This was due to a buggy test for '.' and '..' in fill_with_dentries() which resulted in passing '.' and '..' entries to lookup_one_len() in some cases. That returned error and so we failed to iterate over all xattrs of and inode. Fix the test in fill_with_dentries() along the lines of the one in lookup_one_len(). Reported-by: Pawel Zawora Signed-off-by: Jan Kara Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed