Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
svcsubs.c File Reference
#include <linux/types.h>
#include <linux/string.h>
#include <linux/time.h>
#include <linux/in.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/sunrpc/svc.h>
#include <linux/sunrpc/clnt.h>
#include <linux/nfsd/nfsfh.h>
#include <linux/nfsd/export.h>
#include <linux/lockd/lockd.h>
#include <linux/lockd/share.h>
#include <linux/module.h>
#include <linux/mount.h>

Go to the source code of this file.

Macros

#define NLMDBG_FACILITY   NLMDBG_SVCSUBS
 
#define FILE_HASH_BITS   7
 
#define FILE_NRHASH   (1<<FILE_HASH_BITS)
 

Functions

__be32 nlm_lookup_file (struct svc_rqst *rqstp, struct nlm_file **result, struct nfs_fh *f)
 
void nlm_release_file (struct nlm_file *file)
 
void nlmsvc_mark_resources (struct net *net)
 
void nlmsvc_free_host_resources (struct nlm_host *host)
 
void nlmsvc_invalidate_all (void)
 
int nlmsvc_unlock_all_by_sb (struct super_block *sb)
 
 EXPORT_SYMBOL_GPL (nlmsvc_unlock_all_by_sb)
 
int nlmsvc_unlock_all_by_ip (struct sockaddr *server_addr)
 
 EXPORT_SYMBOL_GPL (nlmsvc_unlock_all_by_ip)
 

Macro Definition Documentation

#define FILE_HASH_BITS   7

Definition at line 30 of file svcsubs.c.

#define FILE_NRHASH   (1<<FILE_HASH_BITS)

Definition at line 31 of file svcsubs.c.

#define NLMDBG_FACILITY   NLMDBG_SVCSUBS

Definition at line 24 of file svcsubs.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nlmsvc_unlock_all_by_sb  )
EXPORT_SYMBOL_GPL ( nlmsvc_unlock_all_by_ip  )
__be32 nlm_lookup_file ( struct svc_rqst rqstp,
struct nlm_file **  result,
struct nfs_fh f 
)

Definition at line 84 of file svcsubs.c.

void nlm_release_file ( struct nlm_file *  file)

Definition at line 293 of file svcsubs.c.

void nlmsvc_free_host_resources ( struct nlm_host *  host)

Definition at line 378 of file svcsubs.c.

void nlmsvc_invalidate_all ( void  )

nlmsvc_invalidate_all - remove all locks held for clients

Release all locks held by NFS clients.

Definition at line 397 of file svcsubs.c.

void nlmsvc_mark_resources ( struct net net)

Definition at line 365 of file svcsubs.c.

int nlmsvc_unlock_all_by_ip ( struct sockaddr server_addr)

nlmsvc_unlock_all_by_ip - release local locks by IP address : server's IP address as seen by clients

Release all locks held by clients accessing this host via the passed in IP address.

Definition at line 446 of file svcsubs.c.

int nlmsvc_unlock_all_by_sb ( struct super_block sb)

nlmsvc_unlock_all_by_sb - release locks held on this file system : super block

Release all locks held by clients accessing this file system.

Definition at line 423 of file svcsubs.c.