#define pr_fmt(fmt) …
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/time.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/crc32.h>
#include <linux/jffs2.h>
#include "nodelist.h"
static int jffs2_write_end(struct file *filp, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *pg, void *fsdata);
static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
loff_t pos, unsigned len,
struct page **pagep, void **fsdata);
static int jffs2_read_folio(struct file *filp, struct folio *folio);
int jffs2_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
{ … }
const struct file_operations jffs2_file_operations = …;
const struct inode_operations jffs2_file_inode_operations = …;
const struct address_space_operations jffs2_file_address_operations = …;
static int jffs2_do_readpage_nolock (struct inode *inode, struct page *pg)
{ … }
int __jffs2_read_folio(struct file *file, struct folio *folio)
{ … }
static int jffs2_read_folio(struct file *file, struct folio *folio)
{ … }
static int jffs2_write_begin(struct file *filp, struct address_space *mapping,
loff_t pos, unsigned len,
struct page **pagep, void **fsdata)
{ … }
static int jffs2_write_end(struct file *filp, struct address_space *mapping,
loff_t pos, unsigned len, unsigned copied,
struct page *pg, void *fsdata)
{ … }