aboutsummaryrefslogtreecommitdiff
path: root/fs/adfs/dir_f.c
diff options
context:
space:
mode:
authorGravatar Russell King <rmk+kernel@armlinux.org.uk> 2019-12-09 11:09:15 +0000
committerGravatar Al Viro <viro@zeniv.linux.org.uk> 2020-01-20 20:12:40 -0500
commit95fbadbb5566e383f0cfe40d895e698ab38bdbc7 (patch)
tree97c0fc9d60b2f16765c9803ef52003bbdff93a74 /fs/adfs/dir_f.c
parentfs/adfs: dir: rename bh_fplus to bhs (diff)
downloadlinux-95fbadbb5566e383f0cfe40d895e698ab38bdbc7.tar.gz
linux-95fbadbb5566e383f0cfe40d895e698ab38bdbc7.tar.bz2
linux-95fbadbb5566e383f0cfe40d895e698ab38bdbc7.zip
fs/adfs: dir: add common dir object initialisation
Initialise the dir object before we pass it down to the directory format specific read handler. This allows us to get rid of the initialisation inside those handlers. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/adfs/dir_f.c')
-rw-r--r--fs/adfs/dir_f.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c
index c1a950c7400a..e62f35eb7789 100644
--- a/fs/adfs/dir_f.c
+++ b/fs/adfs/dir_f.c
@@ -139,9 +139,6 @@ static int adfs_dir_read(struct super_block *sb, u32 indaddr,
size >>= blocksize_bits;
- dir->nr_buffers = 0;
- dir->sb = sb;
-
for (blk = 0; blk < size; blk++) {
int phys;