Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2)  * JFFS2 -- Journalling Flash File System, Version 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Copyright © 2001-2007 Red Hat, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * Created by David Woodhouse <dwmw2@infradead.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  * For licensing information, see the file 'LICENCE' in this directory.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #ifndef __JFFS2_OS_LINUX_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #define __JFFS2_OS_LINUX_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) /* JFFS2 uses Linux mode bits natively -- no need for conversion */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #define os_to_jffs2_mode(x) (x)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #define jffs2_to_os_mode(x) (x)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) struct kstatfs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) struct kvec;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #define JFFS2_INODE_INFO(i) (container_of(i, struct jffs2_inode_info, vfs_inode))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #define OFNI_EDONI_2SFFJ(f)  (&(f)->vfs_inode)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #define JFFS2_SB_INFO(sb) (sb->s_fs_info)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #define OFNI_BS_2SFFJ(c)  ((struct super_block *)c->os_priv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #define JFFS2_F_I_SIZE(f) (OFNI_EDONI_2SFFJ(f)->i_size)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) #define JFFS2_F_I_MODE(f) (OFNI_EDONI_2SFFJ(f)->i_mode)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #define JFFS2_F_I_UID(f) (i_uid_read(OFNI_EDONI_2SFFJ(f)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #define JFFS2_F_I_GID(f) (i_gid_read(OFNI_EDONI_2SFFJ(f)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #define JFFS2_F_I_RDEV(f) (OFNI_EDONI_2SFFJ(f)->i_rdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) #define JFFS2_CLAMP_TIME(t) ((uint32_t)clamp_t(time64_t, (t), 0, U32_MAX))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) #define ITIME(sec) ((struct timespec64){sec, 0})
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) #define JFFS2_NOW() JFFS2_CLAMP_TIME(ktime_get_real_seconds())
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #define I_SEC(tv) JFFS2_CLAMP_TIME((tv).tv_sec)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) #define JFFS2_F_I_CTIME(f) I_SEC(OFNI_EDONI_2SFFJ(f)->i_ctime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) #define JFFS2_F_I_MTIME(f) I_SEC(OFNI_EDONI_2SFFJ(f)->i_mtime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #define JFFS2_F_I_ATIME(f) I_SEC(OFNI_EDONI_2SFFJ(f)->i_atime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) #define sleep_on_spinunlock(wq, s)				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	do {							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 		DECLARE_WAITQUEUE(__wait, current);		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 		add_wait_queue((wq), &__wait);			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 		set_current_state(TASK_UNINTERRUPTIBLE);	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 		spin_unlock(s);					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 		schedule();					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 		remove_wait_queue((wq), &__wait);		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	} while(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) static inline void jffs2_init_inode_info(struct jffs2_inode_info *f)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	f->highest_version = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	f->fragtree = RB_ROOT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	f->metadata = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	f->dents = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	f->target = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	f->flags = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	f->usercompr = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & SB_RDONLY)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) #define SECTOR_ADDR(x) ( (((unsigned long)(x) / c->sector_size) * c->sector_size) )
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) #ifndef CONFIG_JFFS2_FS_WRITEBUFFER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) #ifdef CONFIG_JFFS2_SUMMARY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) #define jffs2_can_mark_obsolete(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) #define jffs2_can_mark_obsolete(c) (1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) #define jffs2_is_writebuffered(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) #define jffs2_cleanmarker_oob(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, buf)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) #define jffs2_flush_wbuf_pad(c) ({ do{} while(0); (void)(c), 0; })
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) #define jffs2_flush_wbuf_gc(c, i) ({ do{} while(0); (void)(c), (void) i, 0; })
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) #define jffs2_write_nand_badblock(c,jeb,bad_offset) (1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) #define jffs2_nand_flash_setup(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) #define jffs2_nand_flash_cleanup(c) do {} while(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) #define jffs2_wbuf_dirty(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #define jffs2_flash_writev(a,b,c,d,e,f) jffs2_flash_direct_writev(a,b,c,d,e)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) #define jffs2_wbuf_timeout NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) #define jffs2_wbuf_process NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) #define jffs2_dataflash(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) #define jffs2_dataflash_setup(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) #define jffs2_dataflash_cleanup(c) do {} while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) #define jffs2_nor_wbuf_flash(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) #define jffs2_nor_wbuf_flash_setup(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) #define jffs2_nor_wbuf_flash_cleanup(c) do {} while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) #define jffs2_ubivol(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) #define jffs2_ubivol_setup(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) #define jffs2_ubivol_cleanup(c) do {} while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) #define jffs2_dirty_trigger(c) do {} while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #else /* NAND and/or ECC'd NOR support present */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define jffs2_is_writebuffered(c) (c->wbuf != NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #ifdef CONFIG_JFFS2_SUMMARY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) #define jffs2_can_mark_obsolete(c) (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define jffs2_can_mark_obsolete(c) (c->mtd->flags & (MTD_BIT_WRITEABLE))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define jffs2_cleanmarker_oob(c) (c->mtd->type == MTD_NANDFLASH)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define jffs2_wbuf_dirty(c) (!!(c)->wbuf_len)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) /* wbuf.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) int jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen, uint32_t ino);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) void jffs2_wbuf_timeout(unsigned long data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) void jffs2_wbuf_process(void *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) int jffs2_flush_wbuf_gc(struct jffs2_sb_info *c, uint32_t ino);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) int jffs2_flush_wbuf_pad(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) int jffs2_nand_flash_setup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) void jffs2_nand_flash_cleanup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define jffs2_dataflash(c) (c->mtd->type == MTD_DATAFLASH)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) int jffs2_dataflash_setup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) void jffs2_dataflash_cleanup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #define jffs2_ubivol(c) (c->mtd->type == MTD_UBIVOLUME)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) int jffs2_ubivol_setup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) void jffs2_ubivol_cleanup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define jffs2_nor_wbuf_flash(c) (c->mtd->type == MTD_NORFLASH && ! (c->mtd->flags & MTD_BIT_WRITEABLE))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) int jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) void jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) void jffs2_dirty_trigger(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) #endif /* WRITEBUFFER */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) /* background.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) void jffs2_stop_garbage_collect_thread(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) /* dir.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) extern const struct file_operations jffs2_dir_operations;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) extern const struct inode_operations jffs2_dir_inode_operations;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) /* file.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) extern const struct file_operations jffs2_file_operations;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) extern const struct inode_operations jffs2_file_inode_operations;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) extern const struct address_space_operations jffs2_file_address_operations;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) int jffs2_fsync(struct file *, loff_t, loff_t, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) int jffs2_do_readpage_unlock(void *data, struct page *pg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) /* ioctl.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) long jffs2_ioctl(struct file *, unsigned int, unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) /* symlink.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) extern const struct inode_operations jffs2_symlink_inode_operations;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) /* fs.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) int jffs2_setattr (struct dentry *, struct iattr *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) int jffs2_do_setattr (struct inode *, struct iattr *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) struct inode *jffs2_iget(struct super_block *, unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) void jffs2_evict_inode (struct inode *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) void jffs2_dirty_inode(struct inode *inode, int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) struct inode *jffs2_new_inode (struct inode *dir_i, umode_t mode,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 			       struct jffs2_raw_inode *ri);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) int jffs2_statfs (struct dentry *, struct kstatfs *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) int jffs2_do_remount_fs(struct super_block *sb, struct fs_context *fc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) int jffs2_do_fill_super(struct super_block *sb, struct fs_context *fc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) void jffs2_gc_release_inode(struct jffs2_sb_info *c,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 			    struct jffs2_inode_info *f);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) struct jffs2_inode_info *jffs2_gc_fetch_inode(struct jffs2_sb_info *c,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 					      int inum, int unlinked);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) unsigned char *jffs2_gc_fetch_page(struct jffs2_sb_info *c,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 				   struct jffs2_inode_info *f,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 				   unsigned long offset,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 				   unsigned long *priv);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) void jffs2_flash_cleanup(struct jffs2_sb_info *c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) /* writev.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) int jffs2_flash_direct_writev(struct jffs2_sb_info *c, const struct kvec *vecs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 		       unsigned long count, loff_t to, size_t *retlen);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 			size_t *retlen, const u_char *buf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) #endif /* __JFFS2_OS_LINUX_H__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)