OSDN Git Service

udf: Fix spelling in EXT_NEXT_EXTENT_ALLOCDESCS
authorPali Rohár <pali.rohar@gmail.com>
Tue, 7 Jan 2020 21:29:02 +0000 (22:29 +0100)
committerJan Kara <jack@suse.cz>
Wed, 8 Jan 2020 10:11:46 +0000 (11:11 +0100)
Change EXT_NEXT_EXTENT_ALLOCDECS to proper spelling
EXT_NEXT_EXTENT_ALLOCDESCS.

Link: https://lore.kernel.org/r/20200107212904.30471-1-pali.rohar@gmail.com
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/ecma_167.h
fs/udf/inode.c
fs/udf/truncate.c

index fb7f2c7..e7b889e 100644 (file)
@@ -757,7 +757,7 @@ struct partitionIntegrityEntry {
 #define EXT_RECORDED_ALLOCATED         0x00000000
 #define EXT_NOT_RECORDED_ALLOCATED     0x40000000
 #define EXT_NOT_RECORDED_NOT_ALLOCATED 0x80000000
-#define EXT_NEXT_EXTENT_ALLOCDECS      0xC0000000
+#define EXT_NEXT_EXTENT_ALLOCDESCS     0xC0000000
 
 /* Long Allocation Descriptor (ECMA 167r3 4/14.14.2) */
 
index ea80036..e875bc5 100644 (file)
@@ -1981,10 +1981,10 @@ int udf_setup_indirect_aext(struct inode *inode, udf_pblk_t block,
 
                __udf_add_aext(inode, &nepos, &cp_loc, cp_len, 1);
                udf_write_aext(inode, epos, &nepos.block,
-                              sb->s_blocksize | EXT_NEXT_EXTENT_ALLOCDECS, 0);
+                              sb->s_blocksize | EXT_NEXT_EXTENT_ALLOCDESCS, 0);
        } else {
                __udf_add_aext(inode, epos, &nepos.block,
-                              sb->s_blocksize | EXT_NEXT_EXTENT_ALLOCDECS, 0);
+                              sb->s_blocksize | EXT_NEXT_EXTENT_ALLOCDESCS, 0);
        }
 
        brelse(epos->bh);
@@ -2143,7 +2143,7 @@ int8_t udf_next_aext(struct inode *inode, struct extent_position *epos,
        unsigned int indirections = 0;
 
        while ((etype = udf_current_aext(inode, epos, eloc, elen, inc)) ==
-              (EXT_NEXT_EXTENT_ALLOCDECS >> 30)) {
+              (EXT_NEXT_EXTENT_ALLOCDESCS >> 30)) {
                udf_pblk_t block;
 
                if (++indirections > UDF_MAX_INDIR_EXTS) {
index 63a47f1..532cda9 100644 (file)
@@ -241,7 +241,7 @@ int udf_truncate_extents(struct inode *inode)
 
        while ((etype = udf_current_aext(inode, &epos, &eloc,
                                         &elen, 0)) != -1) {
-               if (etype == (EXT_NEXT_EXTENT_ALLOCDECS >> 30)) {
+               if (etype == (EXT_NEXT_EXTENT_ALLOCDESCS >> 30)) {
                        udf_write_aext(inode, &epos, &neloc, nelen, 0);
                        if (indirect_ext_len) {
                                /* We managed to free all extents in the