Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
file.c File Reference
#include <linux/module.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_mount.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/aio.h>
#include <linux/gfp.h>
#include <linux/swap.h>
#include <asm/uaccess.h>
#include "delegation.h"
#include "internal.h"
#include "iostat.h"
#include "fscache.h"

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_FILE
 
#define IS_SWAPFILE(inode)   (0)
 

Functions

int nfs_check_flags (int flags)
 
 EXPORT_SYMBOL_GPL (nfs_check_flags)
 
int nfs_file_release (struct inode *inode, struct file *filp)
 
 EXPORT_SYMBOL_GPL (nfs_file_release)
 
loff_t nfs_file_llseek (struct file *filp, loff_t offset, int origin)
 
 EXPORT_SYMBOL_GPL (nfs_file_llseek)
 
int nfs_file_flush (struct file *file, fl_owner_t id)
 
 EXPORT_SYMBOL_GPL (nfs_file_flush)
 
ssize_t nfs_file_read (struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos)
 
 EXPORT_SYMBOL_GPL (nfs_file_read)
 
ssize_t nfs_file_splice_read (struct file *filp, loff_t *ppos, struct pipe_inode_info *pipe, size_t count, unsigned int flags)
 
 EXPORT_SYMBOL_GPL (nfs_file_splice_read)
 
int nfs_file_mmap (struct file *file, struct vm_area_struct *vma)
 
 EXPORT_SYMBOL_GPL (nfs_file_mmap)
 
int nfs_file_fsync_commit (struct file *file, loff_t start, loff_t end, int datasync)
 
 EXPORT_SYMBOL_GPL (nfs_file_fsync_commit)
 
ssize_t nfs_file_write (struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos)
 
 EXPORT_SYMBOL_GPL (nfs_file_write)
 
ssize_t nfs_file_splice_write (struct pipe_inode_info *pipe, struct file *filp, loff_t *ppos, size_t count, unsigned int flags)
 
 EXPORT_SYMBOL_GPL (nfs_file_splice_write)
 
int nfs_lock (struct file *filp, int cmd, struct file_lock *fl)
 
 EXPORT_SYMBOL_GPL (nfs_lock)
 
int nfs_flock (struct file *filp, int cmd, struct file_lock *fl)
 
 EXPORT_SYMBOL_GPL (nfs_flock)
 
int nfs_setlease (struct file *file, long arg, struct file_lock **fl)
 
 EXPORT_SYMBOL_GPL (nfs_setlease)
 
 EXPORT_SYMBOL_GPL (nfs_file_operations)
 

Variables

struct address_space_operations nfs_file_aops
 
struct file_operations nfs_file_operations
 

Macro Definition Documentation

#define IS_SWAPFILE (   inode)    (0)

Definition at line 46 of file file.c.

#define NFSDBG_FACILITY   NFSDBG_FILE

Definition at line 40 of file file.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nfs_check_flags  )
EXPORT_SYMBOL_GPL ( nfs_file_release  )
EXPORT_SYMBOL_GPL ( nfs_file_llseek  )
EXPORT_SYMBOL_GPL ( nfs_file_flush  )
EXPORT_SYMBOL_GPL ( nfs_file_read  )
EXPORT_SYMBOL_GPL ( nfs_file_splice_read  )
EXPORT_SYMBOL_GPL ( nfs_file_mmap  )
EXPORT_SYMBOL_GPL ( nfs_file_fsync_commit  )
EXPORT_SYMBOL_GPL ( nfs_file_write  )
EXPORT_SYMBOL_GPL ( nfs_file_splice_write  )
EXPORT_SYMBOL_GPL ( nfs_lock  )
EXPORT_SYMBOL_GPL ( nfs_flock  )
EXPORT_SYMBOL_GPL ( nfs_setlease  )
EXPORT_SYMBOL_GPL ( nfs_file_operations  )
int nfs_check_flags ( int  flags)

Definition at line 49 of file file.c.

int nfs_file_flush ( struct file file,
fl_owner_t  id 
)

Definition at line 149 of file file.c.

int nfs_file_fsync_commit ( struct file file,
loff_t  start,
loff_t  end,
int  datasync 
)

Definition at line 257 of file file.c.

loff_t nfs_file_llseek ( struct file filp,
loff_t  offset,
int  origin 
)

Definition at line 122 of file file.c.

int nfs_file_mmap ( struct file file,
struct vm_area_struct vma 
)

Definition at line 223 of file file.c.

ssize_t nfs_file_read ( struct kiocb iocb,
const struct iovec iov,
unsigned long  nr_segs,
loff_t  pos 
)

Definition at line 175 of file file.c.

int nfs_file_release ( struct inode inode,
struct file filp 
)

Definition at line 80 of file file.c.

ssize_t nfs_file_splice_read ( struct file filp,
loff_t *  ppos,
struct pipe_inode_info pipe,
size_t  count,
unsigned int  flags 
)

Definition at line 200 of file file.c.

ssize_t nfs_file_splice_write ( struct pipe_inode_info pipe,
struct file filp,
loff_t *  ppos,
size_t  count,
unsigned int  flags 
)

Definition at line 666 of file file.c.

ssize_t nfs_file_write ( struct kiocb iocb,
const struct iovec iov,
unsigned long  nr_segs,
loff_t  pos 
)

Definition at line 613 of file file.c.

int nfs_flock ( struct file filp,
int  cmd,
struct file_lock fl 
)

Definition at line 862 of file file.c.

int nfs_lock ( struct file filp,
int  cmd,
struct file_lock fl 
)

Definition at line 821 of file file.c.

int nfs_setlease ( struct file file,
long  arg,
struct file_lock **  fl 
)

Definition at line 902 of file file.c.

Variable Documentation

Initial value:
= {
.readpage = nfs_readpage,
.readpages = nfs_readpages,
.set_page_dirty = __set_page_dirty_nobuffers,
.writepage = nfs_writepage,
.writepages = nfs_writepages,
.write_begin = nfs_write_begin,
.write_end = nfs_write_end,
.invalidatepage = nfs_invalidate_page,
.releasepage = nfs_release_page,
.direct_IO = nfs_direct_IO,
.migratepage = nfs_migrate_page,
.launder_page = nfs_launder_page,
.error_remove_page = generic_error_remove_page,
}

Definition at line 530 of file file.c.

struct file_operations nfs_file_operations
Initial value:
= {
.llseek = nfs_file_llseek,
.read = do_sync_read,
.write = do_sync_write,
.aio_read = nfs_file_read,
.aio_write = nfs_file_write,
.mmap = nfs_file_mmap,
.open = nfs_file_open,
.flush = nfs_file_flush,
.release = nfs_file_release,
.fsync = nfs_file_fsync,
.lock = nfs_lock,
.flock = nfs_flock,
.splice_read = nfs_file_splice_read,
.splice_write = nfs_file_splice_write,
.check_flags = nfs_check_flags,
.setlease = nfs_setlease,
}

Definition at line 911 of file file.c.