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 fb7f2c7bec9ca4d51328c2c3a2dcf445ef320e0f..e7b889e01cd85e1cee5e3025b339dcc61d001fa3 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 ea80036d7897b60b0d07dcf996bffd54f85ee530..e875bc5668ee75c4484d585dda2d8f1826277270 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 63a47f1e1d529c1c98a1f25c86cd25880c1737ac..532cda99644ee09eacc8a3c9e190f9f379893a17 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