Skip to content

Commit ae79ce9

Browse files
author
Al Viro
committed
ufs_inode_getfrag(): remove junk comment
It used to be a stubbed out beginning of ufs2 support, which had been implemented differently quite a while ago. Remove the commented-out (pseudo-)code. Signed-off-by: Al Viro <[email protected]>
1 parent 426f07a commit ae79ce9

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

fs/ufs/inode.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,6 @@ ufs_inode_getfrag(struct inode *inode, unsigned index,
264264
unsigned nfrags = uspi->s_fpb;
265265
void *p;
266266

267-
/* TODO : to be done for write support
268-
if ( (flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
269-
goto ufs2;
270-
*/
271-
272267
p = ufs_get_direct_data_ptr(uspi, ufsi, index);
273268
tmp = ufs_data_ptr_to_cpu(sb, p);
274269
if (tmp)
@@ -303,21 +298,6 @@ ufs_inode_getfrag(struct inode *inode, unsigned index,
303298
mark_inode_dirty(inode);
304299
out:
305300
return tmp + uspi->s_sbbase;
306-
307-
/* This part : To be implemented ....
308-
Required only for writing, not required for READ-ONLY.
309-
ufs2:
310-
311-
u2_block = ufs_fragstoblks(fragment);
312-
u2_blockoff = ufs_fragnum(fragment);
313-
p = ufsi->i_u1.u2_i_data + block;
314-
goal = 0;
315-
316-
repeat2:
317-
tmp = fs32_to_cpu(sb, *p);
318-
lastfrag = ufsi->i_lastfrag;
319-
320-
*/
321301
}
322302

323303
/**

0 commit comments

Comments
 (0)