Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/metrics.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_mount.h>
#include <linux/nfs4_mount.h>
#include <linux/lockd/bind.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/vfs.h>
#include <linux/inet.h>
#include <linux/nfs_xdr.h>
#include <linux/slab.h>
#include <linux/compat.h>
#include <linux/freezer.h>
#include <linux/crc32.h>
#include <asm/uaccess.h>
#include "nfs4_fs.h"
#include "callback.h"
#include "delegation.h"
#include "iostat.h"
#include "internal.h"
#include "fscache.h"
#include "dns_resolve.h"
#include "pnfs.h"
#include "nfs.h"
#include "netns.h"
Go to the source code of this file.
Data Structures | |
struct | nfs_find_desc |
Macros | |
#define | NFSDBG_FACILITY NFSDBG_VFS |
#define | NFS_64_BIT_INODE_NUMBERS_ENABLED 1 |
#define | NFS_VALID_ATTRS (ATTR_MODE|ATTR_UID|ATTR_GID|ATTR_SIZE|ATTR_ATIME|ATTR_ATIME_SET|ATTR_MTIME|ATTR_MTIME_SET|ATTR_FILE|ATTR_OPEN) |
Variables | |
struct workqueue_struct * | nfsiod_workqueue |
int | nfs_net_id |
#define NFS_VALID_ATTRS (ATTR_MODE|ATTR_UID|ATTR_GID|ATTR_SIZE|ATTR_ATIME|ATTR_ATIME_SET|ATTR_MTIME|ATTR_MTIME_SET|ATTR_FILE|ATTR_OPEN) |
#define NFSDBG_FACILITY NFSDBG_VFS |
int __nfs_revalidate_inode | ( | struct nfs_server * | server, |
struct inode * | inode | ||
) |
|
read |
EXPORT_SYMBOL_GPL | ( | nfs_wait_bit_killable | ) |
EXPORT_SYMBOL_GPL | ( | nfs_clear_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfs_zap_acl_cache | ) |
EXPORT_SYMBOL_GPL | ( | nfs_invalidate_atime | ) |
EXPORT_SYMBOL_GPL | ( | nfs_fhget | ) |
EXPORT_SYMBOL_GPL | ( | nfs_setattr | ) |
EXPORT_SYMBOL_GPL | ( | nfs_setattr_update_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfs_getattr | ) |
EXPORT_SYMBOL_GPL | ( | nfs_close_context | ) |
EXPORT_SYMBOL_GPL | ( | alloc_nfs_open_context | ) |
EXPORT_SYMBOL_GPL | ( | get_nfs_open_context | ) |
EXPORT_SYMBOL_GPL | ( | put_nfs_open_context | ) |
EXPORT_SYMBOL_GPL | ( | nfs_file_set_open_context | ) |
EXPORT_SYMBOL_GPL | ( | nfs_revalidate_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfs_fattr_init | ) |
EXPORT_SYMBOL_GPL | ( | nfs_alloc_fattr | ) |
EXPORT_SYMBOL_GPL | ( | nfs_alloc_fhandle | ) |
EXPORT_SYMBOL_GPL | ( | nfs_refresh_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfs_post_op_update_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfs_post_op_update_inode_force_wcc | ) |
EXPORT_SYMBOL_GPL | ( | nfs_alloc_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfs_destroy_inode | ) |
EXPORT_SYMBOL_GPL | ( | nfsiod_workqueue | ) |
EXPORT_SYMBOL_GPL | ( | nfs_net_id | ) |
|
read |
MODULE_AUTHOR | ( | "Olaf Kirch <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | enable_ino64 | , |
bool | , | ||
0644 | |||
) |
|
read |
void nfs_close_context | ( | struct nfs_open_context * | ctx, |
int | is_sync | ||
) |
void nfs_file_set_open_context | ( | struct file * | filp, |
struct nfs_open_context * | ctx | ||
) |
|
read |
nfs_post_op_update_inode - try to update the inode attribute cache - pointer to inode - updated attributes
After an operation that has changed the inode metadata, mark the attribute cache as being invalid, then try to update it.
NB: if the server didn't return any post op attributes, this function will force the retrieval of attributes before the next NFS request. Thus it should be used only for operations that are expected to change one or more attributes, to avoid unnecessary NFS requests and trips through nfs_update_inode().
nfs_post_op_update_inode_force_wcc - try to update the inode attribute cache - pointer to inode - updated attributes
After an operation that has changed the inode metadata, mark the attribute cache as being invalid, then try to update it. Fake up weak cache consistency data, if none exist.
This function is mainly designed to be used by the ->write_done() functions.
void nfs_put_lock_context | ( | struct nfs_lock_context * | l_ctx | ) |
nfs_refresh_inode - try to update the inode attribute cache - pointer to inode - updated attributes
Check that an RPC call that returned attributes has not overlapped with other recent updates of the inode metadata, then decide whether it is safe to do a full update of the inode attributes, or whether just to call nfs_check_inode_attributes.
int nfs_revalidate_inode | ( | struct nfs_server * | server, |
struct inode * | inode | ||
) |
int nfs_revalidate_mapping | ( | struct inode * | inode, |
struct address_space * | mapping | ||
) |
int nfs_sync_mapping | ( | struct address_space * | mapping | ) |
void nfs_zap_mapping | ( | struct inode * | inode, |
struct address_space * | mapping | ||
) |
void put_nfs_open_context | ( | struct nfs_open_context * | ctx | ) |
struct workqueue_struct* nfsiod_workqueue |