Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a6780173
Commit
a6780173
authored
Nov 08, 2002
by
Chuck Lever
Committed by
Linus Torvalds
Nov 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove unused NFS cruft
remove some definitions and declarations that are no longer used.
parent
156fde47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
25 deletions
+1
-25
fs/nfs/inode.c
fs/nfs/inode.c
+0
-1
include/linux/nfs_fs.h
include/linux/nfs_fs.h
+1
-24
No files found.
fs/nfs/inode.c
View file @
a6780173
...
...
@@ -37,7 +37,6 @@
#include <asm/system.h>
#include <asm/uaccess.h>
#define CONFIG_NFS_SNAPSHOT 1
#define NFSDBG_FACILITY NFSDBG_VFS
#define NFS_PARANOIA 1
...
...
include/linux/nfs_fs.h
View file @
a6780173
...
...
@@ -37,34 +37,16 @@
# define NFS_DEBUG
#endif
/*
* NFS_MAX_DIRCACHE controls the number of simultaneously cached
* directory chunks. Each chunk holds the list of nfs_entry's returned
* in a single readdir call in a memory region of size PAGE_SIZE.
*
* Note that at most server->rsize bytes of the cache memory are used.
*/
#define NFS_MAX_DIRCACHE 16
#define NFS_MAX_FILE_IO_BUFFER_SIZE 32768
#define NFS_DEF_FILE_IO_BUFFER_SIZE 4096
/*
* The upper limit on timeouts for the exponential backoff algorithm.
*/
#define NFS_MAX_RPC_TIMEOUT (6*HZ)
#define NFS_READ_DELAY (2*HZ)
#define NFS_WRITEBACK_DELAY (5*HZ)
#define NFS_WRITEBACK_LOCKDELAY (60*HZ)
#define NFS_COMMIT_DELAY (5*HZ)
/*
* Size of the lookup cache in units of number of entries cached.
* It is better not to make this too large although the optimum
* depends on a usage and environment.
*/
#define NFS_LOOKUP_CACHE_SIZE 64
/*
* superblock magic number for NFS
*/
...
...
@@ -182,8 +164,7 @@ struct nfs_inode {
#define NFS_INO_STALE 0x0001
/* possible stale inode */
#define NFS_INO_ADVISE_RDPLUS 0x0002
/* advise readdirplus */
#define NFS_INO_REVALIDATING 0x0004
/* revalidating attrs */
#define NFS_IS_SNAPSHOT 0x0010
/* a snapshot file */
#define NFS_INO_FLUSH 0x0020
/* inode is due for flushing */
#define NFS_INO_FLUSH 0x0008
/* inode is due for flushing */
static
inline
struct
nfs_inode
*
NFS_I
(
struct
inode
*
inode
)
{
...
...
@@ -197,7 +178,6 @@ static inline struct nfs_inode *NFS_I(struct inode *inode)
#define NFS_PROTO(inode) (NFS_SERVER(inode)->rpc_ops)
#define NFS_REQUESTLIST(inode) (NFS_SERVER(inode)->rw_requests)
#define NFS_ADDR(inode) (RPC_PEERADDR(NFS_CLIENT(inode)))
#define NFS_CONGESTED(inode) (RPC_CONGESTED(NFS_CLIENT(inode)))
#define NFS_COOKIEVERF(inode) (NFS_I(inode)->cookieverf)
#define NFS_READTIME(inode) (NFS_I(inode)->read_cache_jiffies)
#define NFS_MTIME_UPDATE(inode) (NFS_I(inode)->cache_mtime_jiffies)
...
...
@@ -205,7 +185,6 @@ static inline struct nfs_inode *NFS_I(struct inode *inode)
#define NFS_CACHE_MTIME(inode) (NFS_I(inode)->read_cache_mtime)
#define NFS_CACHE_ISIZE(inode) (NFS_I(inode)->read_cache_isize)
#define NFS_CHANGE_ATTR(inode) (NFS_I(inode)->change_attr)
#define NFS_NEXTSCAN(inode) (NFS_I(inode)->nextscan)
#define NFS_CACHEINV(inode) \
do { \
NFS_READTIME(inode) = jiffies - NFS_MAXATTRTIMEO(inode) - 1; \
...
...
@@ -251,8 +230,6 @@ loff_t req_offset(struct nfs_page *req)
* linux/fs/nfs/inode.c
*/
extern
void
nfs_zap_caches
(
struct
inode
*
);
extern
int
nfs_inode_is_stale
(
struct
inode
*
,
struct
nfs_fh
*
,
struct
nfs_fattr
*
);
extern
struct
inode
*
nfs_fhget
(
struct
dentry
*
,
struct
nfs_fh
*
,
struct
nfs_fattr
*
);
extern
int
__nfs_refresh_inode
(
struct
inode
*
,
struct
nfs_fattr
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment