projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: Remove a whole lot of function wrappers and forward declarations
[yaffs2.git]
/
yaffs_checkptrw.c
diff --git
a/yaffs_checkptrw.c
b/yaffs_checkptrw.c
index 02b8ce6a0f2e088f8a43709f54796873d8c0f418..66ce541a0e187372f4e24d6db8af2c9b119835e1 100644
(file)
--- a/
yaffs_checkptrw.c
+++ b/
yaffs_checkptrw.c
@@
-154,7
+154,7
@@
int yaffs2_checkpt_open(struct yaffs_dev *dev, int writing)
if (!dev->checkpt_buffer)
dev->checkpt_buffer =
if (!dev->checkpt_buffer)
dev->checkpt_buffer =
-
YMALLOC_DMA(dev->param.total_bytes_per_chunk
);
+
kmalloc(dev->param.total_bytes_per_chunk, GFP_NOFS
);
if (!dev->checkpt_buffer)
return 0;
if (!dev->checkpt_buffer)
return 0;
@@
-182,7
+182,7
@@
int yaffs2_checkpt_open(struct yaffs_dev *dev, int writing)
(dev->internal_end_block - dev->internal_start_block) / 16 +
2;
dev->checkpt_block_list =
(dev->internal_end_block - dev->internal_start_block) / 16 +
2;
dev->checkpt_block_list =
-
YMALLOC(sizeof(int) * dev->checkpt_max_blocks
);
+
kmalloc(sizeof(int) * dev->checkpt_max_blocks, GFP_NOFS
);
if (!dev->checkpt_block_list)
return 0;
if (!dev->checkpt_block_list)
return 0;
@@
-387,7
+387,7
@@
int yaffs_checkpt_close(struct yaffs_dev *dev)
/* Todo this looks odd... */
}
}
/* Todo this looks odd... */
}
}
-
YFREE
(dev->checkpt_block_list);
+
kfree
(dev->checkpt_block_list);
dev->checkpt_block_list = NULL;
}
dev->checkpt_block_list = NULL;
}
@@
-400,7
+400,7
@@
int yaffs_checkpt_close(struct yaffs_dev *dev)
if (dev->checkpt_buffer) {
/* free the buffer */
if (dev->checkpt_buffer) {
/* free the buffer */
-
YFREE
(dev->checkpt_buffer);
+
kfree
(dev->checkpt_buffer);
dev->checkpt_buffer = NULL;
return 1;
} else {
dev->checkpt_buffer = NULL;
return 1;
} else {