summaryrefslogtreecommitdiffstats
path: root/fs/adfs/dir.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-12-09 12:11:38 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2020-01-21 02:12:42 +0100
commit25e5d4df3b46a345dccc0a07f998ce443077b4ff (patch)
treef014209fd64fd0bbcb03bc8e82e0b41ba804184f /fs/adfs/dir.c
parentfs/adfs: super: add support for E and E+ floppy image formats (diff)
downloadlinux-25e5d4df3b46a345dccc0a07f998ce443077b4ff.tar.xz
linux-25e5d4df3b46a345dccc0a07f998ce443077b4ff.zip
fs/adfs: mostly divorse inode number from indirect disc address
Avoid using the inode number as the indirect disc address, even though these currently have the same value. 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.c')
-rw-r--r--fs/adfs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/adfs/dir.c b/fs/adfs/dir.c
index dd940f17767d..77fbd196008f 100644
--- a/fs/adfs/dir.c
+++ b/fs/adfs/dir.c
@@ -158,7 +158,7 @@ static int adfs_dir_read_inode(struct super_block *sb, struct inode *inode,
{
int ret;
- ret = adfs_dir_read(sb, inode->i_ino, inode->i_size, dir);
+ ret = adfs_dir_read(sb, ADFS_I(inode)->indaddr, inode->i_size, dir);
if (ret)
return ret;
@@ -372,7 +372,7 @@ static int adfs_dir_lookup_byname(struct inode *inode, const struct qstr *qstr,
break;
}
}
- obj->parent_id = inode->i_ino;
+ obj->parent_id = ADFS_I(inode)->indaddr;
unlock_relse:
up_read(&adfs_dir_rwsem);