f2fs: Move err variable to function scope in f2fs_fill_dentries()
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Mon, 13 Jan 2020 23:20:07 +0000 (23:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:46:56 +0000 (19:46 +0100)
commit2d57c0a67e331549ebab59432300fc1b1ed5cf84
tree34f3bb5b72b8afeb5aad2445dbff7088fd5a552c
parent8f483142b0bb278f67eabccbe3d6a0e8c45284ad
f2fs: Move err variable to function scope in f2fs_fill_dentries()

This is preparation for the following backported fixes.  It was done
upstream as part of commit e1293bdfa01d "f2fs: plug readahead IO in
readdir()", the rest of which does not seem suitable for stable.

Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/dir.c