summaryrefslogtreecommitdiffstats
path: root/fs/affs/amigaffs.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
commitc7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch)
tree3682407a599b8f9f03fc096298134cafba1c9b2f /fs/affs/amigaffs.c
parent1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff)
o Merge with Linux 2.1.116.
o New Newport console code. o New G364 console code.
Diffstat (limited to 'fs/affs/amigaffs.c')
-rw-r--r--fs/affs/amigaffs.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c
index 68c61753b..d01f618c8 100644
--- a/fs/affs/amigaffs.c
+++ b/fs/affs/amigaffs.c
@@ -24,7 +24,6 @@ static char ErrorBuffer[256];
/*
* Functions for accessing Amiga-FFS structures.
- *
*/
/* Set *NAME to point to the file name in a file header block in memory
@@ -85,7 +84,7 @@ affs_insert_hash(unsigned long next, struct buffer_head *file, struct inode *ino
return 0;
}
-/* Remove a header block from it's hash table (directory).
+/* Remove a header block from its hash table (directory).
* 'inode' may be any inode on the partition, it's only
* used for calculating the block size and superblock
* reference.
@@ -214,7 +213,7 @@ affs_remove_header(struct buffer_head *bh, struct inode *inode)
/* Mark directory as changed. We do this before anything else,
* as it must be done anyway and doesn't hurt even if an
- * error occures later.
+ * error occurs later.
*/
dir = iget(inode->i_sb,be32_to_cpu(FILE_END(bh->b_data,inode)->parent));
if (!dir)
@@ -226,7 +225,7 @@ affs_remove_header(struct buffer_head *bh, struct inode *inode)
orig_ino = be32_to_cpu(FILE_END(bh->b_data,inode)->original);
if (orig_ino) { /* This is just a link. Nothing much to do. */
- pr_debug(" Removing link.\n");
+ pr_debug("AFFS: Removing link.\n");
if ((error = affs_remove_link(bh,inode)))
return error;
if ((error = affs_remove_hash(bh,inode)))
@@ -237,7 +236,7 @@ affs_remove_header(struct buffer_head *bh, struct inode *inode)
link_ino = be32_to_cpu(FILE_END(bh->b_data,inode)->link_chain);
if (link_ino) { /* This is the complicated case. Yuck. */
- pr_debug(" Removing original with links to it.\n");
+ pr_debug("AFFS: Removing original with links to it.\n");
/* Unlink the object and its first link from their directories. */
if ((error = affs_remove_hash(bh,inode)))
return error;
@@ -275,7 +274,7 @@ affs_remove_header(struct buffer_head *bh, struct inode *inode)
return 1;
}
/* Plain file/dir. This is the simplest case. */
- pr_debug(" Removing plain file/dir.\n");
+ pr_debug("AFFS: Removing plain file/dir.\n");
if ((error = affs_remove_hash(bh,inode)))
return error;
return 0;
@@ -308,6 +307,11 @@ affs_checksum_block(int bsize, void *data, s32 *ptype, s32 *stype)
return sum;
}
+/*
+ * Calculate the checksum of a disk block and store it
+ * at the indicated position.
+ */
+
void
affs_fix_checksum(int bsize, void *data, int cspos)
{