summaryrefslogtreecommitdiffstats
path: root/fs/udf/namei.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-01-18 13:27:07 +0100
committerJan Kara <jack@suse.cz>2023-01-26 16:46:32 +0100
commit101ee137d32adc5b53f5c2a61fbda8f70f994845 (patch)
treeb4fe1ee0f9f1418d07cb12e8de365af78fc9ae29 /fs/udf/namei.c
parentbd904f3c74969442b0ac42f81c0d02da54cd47eb (diff)
downloadlinux-stable-101ee137d32adc5b53f5c2a61fbda8f70f994845.tar.gz
linux-stable-101ee137d32adc5b53f5c2a61fbda8f70f994845.tar.bz2
linux-stable-101ee137d32adc5b53f5c2a61fbda8f70f994845.zip
udf: Drop VARCONV support
UDF was supporting a strange mode where the media was containing 7 blocks of unknown data for every 32 blocks of the filesystem. I have yet to see the media that would need such conversion (maybe it comes from packet writing times) and the conversions have been inconsistent in the code. In particular any write will write to a wrong block and corrupt the media. This is an indication and no user actually needs this so let's just drop the support instead of trying to fix it. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/namei.c')
-rw-r--r--fs/udf/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c
index 261ca813a1b8..87257f49b5da 100644
--- a/fs/udf/namei.c
+++ b/fs/udf/namei.c
@@ -171,7 +171,7 @@ static struct buffer_head *udf_expand_dir_adinicb(struct inode *inode,
0);
if (!newblock)
return NULL;
- dbh = udf_tgetblk(inode->i_sb, newblock);
+ dbh = sb_getblk(inode->i_sb, newblock);
if (!dbh)
return NULL;
lock_buffer(dbh);
@@ -623,7 +623,7 @@ static int udf_symlink(struct user_namespace *mnt_userns, struct inode *dir,
block = udf_get_pblock(sb, block,
iinfo->i_location.partitionReferenceNum,
0);
- epos.bh = udf_tgetblk(sb, block);
+ epos.bh = sb_getblk(sb, block);
if (unlikely(!epos.bh)) {
err = -ENOMEM;
udf_free_blocks(sb, inode, &eloc, 0, 1);