summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-02-10 16:44:29 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-02-11 17:04:50 -0800
commit60a3b782b1aaf6e5f8c4f92e99302c48a26d475b (patch)
tree3a055e1b9ab2067437c27d7938ebf32de2de8bd6 /fs/f2fs/segment.h
parent29e7043f405c4c4c3a82f61222790f3ea8c0bf13 (diff)
downloadlinux-60a3b782b1aaf6e5f8c4f92e99302c48a26d475b.tar.bz2
f2fs: avoid variable length array
Instead of using variable length array, this patch let preallocate memory for them. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index 421d5794b0c8..ba858ca01445 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -189,6 +189,7 @@ struct sit_info {
char *sit_bitmap; /* SIT bitmap pointer */
unsigned int bitmap_size; /* SIT bitmap size */
+ unsigned long *tmp_map; /* bitmap for temporal use */
unsigned long *dirty_sentries_bitmap; /* bitmap for dirty sentries */
unsigned int dirty_sentries; /* # of dirty sentries */
unsigned int sents_per_block; /* # of SIT entries per block */