diff options
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 93d59aceaaef..1e5a08623d11 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h | |||
@@ -650,8 +650,6 @@ typedef int (*ubifs_lpt_scan_callback)(struct ubifs_info *c, | |||
650 | * @avail: number of bytes available in the write-buffer | 650 | * @avail: number of bytes available in the write-buffer |
651 | * @used: number of used bytes in the write-buffer | 651 | * @used: number of used bytes in the write-buffer |
652 | * @size: write-buffer size (in [@c->min_io_size, @c->max_write_size] range) | 652 | * @size: write-buffer size (in [@c->min_io_size, @c->max_write_size] range) |
653 | * @dtype: type of data stored in this LEB (%UBI_LONGTERM, %UBI_SHORTTERM, | ||
654 | * %UBI_UNKNOWN) | ||
655 | * @jhead: journal head the mutex belongs to (note, needed only to shut lockdep | 653 | * @jhead: journal head the mutex belongs to (note, needed only to shut lockdep |
656 | * up by 'mutex_lock_nested()). | 654 | * up by 'mutex_lock_nested()). |
657 | * @sync_callback: write-buffer synchronization callback | 655 | * @sync_callback: write-buffer synchronization callback |
@@ -685,7 +683,6 @@ struct ubifs_wbuf { | |||
685 | int avail; | 683 | int avail; |
686 | int used; | 684 | int used; |
687 | int size; | 685 | int size; |
688 | int dtype; | ||
689 | int jhead; | 686 | int jhead; |
690 | int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad); | 687 | int (*sync_callback)(struct ubifs_info *c, int lnum, int free, int pad); |
691 | struct mutex io_mutex; | 688 | struct mutex io_mutex; |
@@ -762,6 +759,9 @@ struct ubifs_zbranch { | |||
762 | * @offs: offset of the corresponding indexing node | 759 | * @offs: offset of the corresponding indexing node |
763 | * @len: length of the corresponding indexing node | 760 | * @len: length of the corresponding indexing node |
764 | * @zbranch: array of znode branches (@c->fanout elements) | 761 | * @zbranch: array of znode branches (@c->fanout elements) |
762 | * | ||
763 | * Note! The @lnum, @offs, and @len fields are not really needed - we have them | ||
764 | * only for internal consistency check. They could be removed to save some RAM. | ||
765 | */ | 765 | */ |
766 | struct ubifs_znode { | 766 | struct ubifs_znode { |
767 | struct ubifs_znode *parent; | 767 | struct ubifs_znode *parent; |
@@ -772,9 +772,9 @@ struct ubifs_znode { | |||
772 | int child_cnt; | 772 | int child_cnt; |
773 | int iip; | 773 | int iip; |
774 | int alt; | 774 | int alt; |
775 | #ifdef CONFIG_UBIFS_FS_DEBUG | 775 | int lnum; |
776 | int lnum, offs, len; | 776 | int offs; |
777 | #endif | 777 | int len; |
778 | struct ubifs_zbranch zbranch[]; | 778 | struct ubifs_zbranch zbranch[]; |
779 | }; | 779 | }; |
780 | 780 | ||
@@ -1444,9 +1444,7 @@ struct ubifs_info { | |||
1444 | struct rb_root size_tree; | 1444 | struct rb_root size_tree; |
1445 | struct ubifs_mount_opts mount_opts; | 1445 | struct ubifs_mount_opts mount_opts; |
1446 | 1446 | ||
1447 | #ifdef CONFIG_UBIFS_FS_DEBUG | ||
1448 | struct ubifs_debug_info *dbg; | 1447 | struct ubifs_debug_info *dbg; |
1449 | #endif | ||
1450 | }; | 1448 | }; |
1451 | 1449 | ||
1452 | extern struct list_head ubifs_infos; | 1450 | extern struct list_head ubifs_infos; |
@@ -1468,22 +1466,20 @@ void ubifs_ro_mode(struct ubifs_info *c, int err); | |||
1468 | int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, | 1466 | int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, |
1469 | int len, int even_ebadmsg); | 1467 | int len, int even_ebadmsg); |
1470 | int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, | 1468 | int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, |
1471 | int len, int dtype); | 1469 | int len); |
1472 | int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len, | 1470 | int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len); |
1473 | int dtype); | ||
1474 | int ubifs_leb_unmap(struct ubifs_info *c, int lnum); | 1471 | int ubifs_leb_unmap(struct ubifs_info *c, int lnum); |
1475 | int ubifs_leb_map(struct ubifs_info *c, int lnum, int dtype); | 1472 | int ubifs_leb_map(struct ubifs_info *c, int lnum); |
1476 | int ubifs_is_mapped(const struct ubifs_info *c, int lnum); | 1473 | int ubifs_is_mapped(const struct ubifs_info *c, int lnum); |
1477 | int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len); | 1474 | int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len); |
1478 | int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs, | 1475 | int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs); |
1479 | int dtype); | ||
1480 | int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf); | 1476 | int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf); |
1481 | int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len, | 1477 | int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len, |
1482 | int lnum, int offs); | 1478 | int lnum, int offs); |
1483 | int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, | 1479 | int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, |
1484 | int lnum, int offs); | 1480 | int lnum, int offs); |
1485 | int ubifs_write_node(struct ubifs_info *c, void *node, int len, int lnum, | 1481 | int ubifs_write_node(struct ubifs_info *c, void *node, int len, int lnum, |
1486 | int offs, int dtype); | 1482 | int offs); |
1487 | int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, | 1483 | int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, |
1488 | int offs, int quiet, int must_chk_crc); | 1484 | int offs, int quiet, int must_chk_crc); |
1489 | void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad); | 1485 | void ubifs_prepare_node(struct ubifs_info *c, void *buf, int len, int pad); |