fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / fs / udf / misc.c
index 174d7a3..a2b2a98 100644 (file)
@@ -4,11 +4,6 @@
  * PURPOSE
  *     Miscellaneous routines for the OSTA-UDF(tm) filesystem.
  *
- * CONTACTS
- *     E-mail regarding any portion of the Linux UDF file system should be
- *     directed to the development team mailing list (run by majordomo):
- *             linux_udf@hpesjro.fc.hp.com
- *
  * COPYRIGHT
  *     This file is distributed under the terms of the GNU General Public
  *     License (GPL). Copies of the GPL can be obtained from:
@@ -273,18 +268,12 @@ error_out:
 }
 
 struct buffer_head *
-udf_read_ptagged(struct super_block *sb, lb_addr loc, uint32_t offset, uint16_t *ident)
+udf_read_ptagged(struct super_block *sb, kernel_lb_addr loc, uint32_t offset, uint16_t *ident)
 {
        return udf_read_tagged(sb, udf_get_lb_pblock(sb, loc, offset),
                loc.logicalBlockNum + offset, ident);
 }
 
-void udf_release_data(struct buffer_head *bh)
-{
-       if (bh)
-               brelse(bh);
-}
-
 void udf_update_tag(char *data, int length)
 {
        tag *tptr = (tag *)data;
@@ -293,8 +282,8 @@ void udf_update_tag(char *data, int length)
        length -= sizeof(tag);
 
        tptr->tagChecksum = 0;
-       tptr->descCRCLength = le16_to_cpu(length);
-       tptr->descCRC = le16_to_cpu(udf_crc(data + sizeof(tag), length, 0));
+       tptr->descCRCLength = cpu_to_le16(length);
+       tptr->descCRC = cpu_to_le16(udf_crc(data + sizeof(tag), length, 0));
 
        for (i=0; i<16; i++)
                if (i != 4)
@@ -305,9 +294,9 @@ void udf_new_tag(char *data, uint16_t ident, uint16_t version, uint16_t snum,
        uint32_t loc, int length)
 {
        tag *tptr = (tag *)data;
-       tptr->tagIdent = le16_to_cpu(ident);
-       tptr->descVersion = le16_to_cpu(version);
-       tptr->tagSerialNum = le16_to_cpu(snum);
-       tptr->tagLocation = le32_to_cpu(loc);
+       tptr->tagIdent = cpu_to_le16(ident);
+       tptr->descVersion = cpu_to_le16(version);
+       tptr->tagSerialNum = cpu_to_le16(snum);
+       tptr->tagLocation = cpu_to_le32(loc);
        udf_update_tag(data, length);
 }