summaryrefslogtreecommitdiff
path: root/fs/udf/super.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2013-02-05 14:08:57 +0100
committerJan Kara <jack@suse.cz>2013-02-05 17:29:52 +0100
commitc60305b578674eefe333198c7476dba2178a9082 (patch)
tree18cfda5512da015ff9d3b912f369f8987c941462 /fs/udf/super.c
parent89b1f39eb4189de745fae554b0d614d87c8d5c63 (diff)
downloadlinux-3.10-c60305b578674eefe333198c7476dba2178a9082.tar.gz
linux-3.10-c60305b578674eefe333198c7476dba2178a9082.tar.bz2
linux-3.10-c60305b578674eefe333198c7476dba2178a9082.zip
udf: Make s_block_bitmap standard array
struct udf_bitmap has array of buffer pointers attached to it. The code unnecessarily used s_block_bitmap as a pointer to the array instead of the standard trick of using 0 length array in the declaration. Change that to make code more readable and actually shrink the structure by one pointer. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r--fs/udf/super.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index da8ce9f1438..f8830803d38 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -1023,7 +1023,6 @@ static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)
if (bitmap == NULL)
return NULL;
- bitmap->s_block_bitmap = (struct buffer_head **)(bitmap + 1);
bitmap->s_nr_groups = nr_groups;
return bitmap;
}