fs/affs/dir.c: unlock/brelse dir on failure + code clean-up
authorFabian Frederick <fabf@skynet.be>
Mon, 7 Apr 2014 22:39:00 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:08 +0000 (16:36 -0700)
commitd40c4d46eaa2295b5d1ee08f594b023245db87a4
tree409ef2009486cb9bbf1f85fec22d7252d9d5f4a4
parentadbd319e5ae90b346e6dbb692862318faa7a7808
fs/affs/dir.c: unlock/brelse dir on failure + code clean-up

Commit 0edf977d2ae3 ("[readdir] convert affs") returns directly -EIO
without unlocking dir inode and releasing dir bh when second affs_bread
sequence fails.  This patch restores initial behaviour.  It also fixes
pr_debug and affs_error to fit in 80 columns + removes reference to
filldir (replaced by dir_emit in the commit above).

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/dir.c