Commit ca120b20 authored by Anders Larsen's avatar Anders Larsen Committed by Linus Torvalds

qnx4fs: remove remains of the (defunct) write support

commit 945ffe54 ("qnx4: remove write support") removed the (defunct)
write support but missed a chunk of related, dead code.
Signed-off-by: default avatarAnders Larsen <al@alarsen.net>
Cc: Jiri Kosina <jkosina@suse.cz>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f65380c0
...@@ -17,13 +17,6 @@ ...@@ -17,13 +17,6 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include "qnx4.h" #include "qnx4.h"
#if 0
int qnx4_new_block(struct super_block *sb)
{
return 0;
}
#endif /* 0 */
static void count_bits(register const char *bmPart, register int size, static void count_bits(register const char *bmPart, register int size,
int *const tf) int *const tf)
{ {
......
...@@ -64,25 +64,7 @@ static struct buffer_head *qnx4_getblk(struct inode *inode, int nr, ...@@ -64,25 +64,7 @@ static struct buffer_head *qnx4_getblk(struct inode *inode, int nr,
result = sb_getblk(inode->i_sb, nr); result = sb_getblk(inode->i_sb, nr);
return result; return result;
} }
if (!create) {
return NULL; return NULL;
}
#if 0
tmp = qnx4_new_block(inode->i_sb);
if (!tmp) {
return NULL;
}
result = sb_getblk(inode->i_sb, tmp);
if (tst) {
qnx4_free_block(inode->i_sb, tmp);
brelse(result);
goto repeat;
}
tst = tmp;
#endif
inode->i_ctime = CURRENT_TIME_SEC;
mark_inode_dirty(inode);
return result;
} }
struct buffer_head *qnx4_bread(struct inode *inode, int block, int create) struct buffer_head *qnx4_bread(struct inode *inode, int block, int create)
...@@ -113,8 +95,6 @@ static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_h ...@@ -113,8 +95,6 @@ static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_h
if ( phys ) { if ( phys ) {
// logical block is before EOF // logical block is before EOF
map_bh(bh, inode->i_sb, phys); map_bh(bh, inode->i_sb, phys);
} else if ( create ) {
// to be done.
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment