#include <linux/backing-dev.h>
#include <linux/blkdev.h>
#include <linux/buffer_head.h>
#include <linux/compat.h>
#include <linux/falloc.h>
#include <linux/fiemap.h>
#include <linux/fileattr.h>
#include "debug.h"
#include "ntfs.h"
#include "ntfs_fs.h"
static int ntfs_ioctl_fitrim(struct ntfs_sb_info *sbi, unsigned long arg)
{ … }
int ntfs_fileattr_get(struct dentry *dentry, struct fileattr *fa)
{ … }
int ntfs_fileattr_set(struct mnt_idmap *idmap, struct dentry *dentry,
struct fileattr *fa)
{ … }
long ntfs_ioctl(struct file *filp, u32 cmd, unsigned long arg)
{ … }
#ifdef CONFIG_COMPAT
long ntfs_compat_ioctl(struct file *filp, u32 cmd, unsigned long arg)
{ … }
#endif
int ntfs_getattr(struct mnt_idmap *idmap, const struct path *path,
struct kstat *stat, u32 request_mask, u32 flags)
{ … }
static int ntfs_extend_initialized_size(struct file *file,
struct ntfs_inode *ni,
const loff_t valid,
const loff_t new_valid)
{ … }
static int ntfs_zero_range(struct inode *inode, u64 vbo, u64 vbo_to)
{ … }
static int ntfs_file_mmap(struct file *file, struct vm_area_struct *vma)
{ … }
static int ntfs_extend(struct inode *inode, loff_t pos, size_t count,
struct file *file)
{ … }
static int ntfs_truncate(struct inode *inode, loff_t new_size)
{ … }
static long ntfs_fallocate(struct file *file, int mode, loff_t vbo, loff_t len)
{ … }
int ntfs3_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
struct iattr *attr)
{ … }
static ssize_t ntfs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)
{ … }
static ssize_t ntfs_file_splice_read(struct file *in, loff_t *ppos,
struct pipe_inode_info *pipe, size_t len,
unsigned int flags)
{ … }
static int ntfs_get_frame_pages(struct address_space *mapping, pgoff_t index,
struct page **pages, u32 pages_per_frame,
bool *frame_uptodate)
{ … }
static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
{ … }
static ssize_t ntfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
{ … }
int ntfs_file_open(struct inode *inode, struct file *file)
{ … }
static int ntfs_file_release(struct inode *inode, struct file *file)
{ … }
int ntfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
__u64 start, __u64 len)
{ … }
const struct inode_operations ntfs_file_inode_operations = …;
const struct file_operations ntfs_file_operations = …;
#if IS_ENABLED(CONFIG_NTFS_FS)
const struct file_operations ntfs_legacy_file_operations = …;
#endif