linux/fs/f2fs/inline.c

// SPDX-License-Identifier: GPL-2.0
/*
 * fs/f2fs/inline.c
 * Copyright (c) 2013, Intel Corporation
 * Authors: Huajun Li <[email protected]>
 *          Haicheng Li <[email protected]>
 */

#include <linux/fs.h>
#include <linux/f2fs_fs.h>
#include <linux/fiemap.h>

#include "f2fs.h"
#include "node.h"
#include <trace/events/f2fs.h>

static bool support_inline_data(struct inode *inode)
{}

bool f2fs_may_inline_data(struct inode *inode)
{}

static bool inode_has_blocks(struct inode *inode, struct page *ipage)
{}

bool f2fs_sanity_check_inline_data(struct inode *inode, struct page *ipage)
{}

bool f2fs_may_inline_dentry(struct inode *inode)
{}

void f2fs_do_read_inline_data(struct folio *folio, struct page *ipage)
{}

void f2fs_truncate_inline_inode(struct inode *inode,
					struct page *ipage, u64 from)
{}

int f2fs_read_inline_data(struct inode *inode, struct folio *folio)
{}

int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page)
{}

int f2fs_convert_inline_inode(struct inode *inode)
{}

int f2fs_write_inline_data(struct inode *inode, struct page *page)
{}

int f2fs_recover_inline_data(struct inode *inode, struct page *npage)
{}

struct f2fs_dir_entry *f2fs_find_in_inline_dir(struct inode *dir,
					const struct f2fs_filename *fname,
					struct page **res_page)
{}

int f2fs_make_empty_inline_dir(struct inode *inode, struct inode *parent,
							struct page *ipage)
{}

/*
 * NOTE: ipage is grabbed by caller, but if any error occurs, we should
 * release ipage in this function.
 */
static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage,
							void *inline_dentry)
{}

static int f2fs_add_inline_entries(struct inode *dir, void *inline_dentry)
{}

static int f2fs_move_rehashed_dirents(struct inode *dir, struct page *ipage,
							void *inline_dentry)
{}

static int do_convert_inline_dir(struct inode *dir, struct page *ipage,
							void *inline_dentry)
{}

int f2fs_try_convert_inline_dir(struct inode *dir, struct dentry *dentry)
{}

int f2fs_add_inline_entry(struct inode *dir, const struct f2fs_filename *fname,
			  struct inode *inode, nid_t ino, umode_t mode)
{}

void f2fs_delete_inline_entry(struct f2fs_dir_entry *dentry, struct page *page,
					struct inode *dir, struct inode *inode)
{}

bool f2fs_empty_inline_dir(struct inode *dir)
{}

int f2fs_read_inline_dir(struct file *file, struct dir_context *ctx,
				struct fscrypt_str *fstr)
{}

int f2fs_inline_data_fiemap(struct inode *inode,
		struct fiemap_extent_info *fieinfo, __u64 start, __u64 len)
{}