diff options
author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:47:52 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:47:52 +0100 |
commit | c256ae39408bb913e6a722f7d9ccd4c89dfa08e5 (patch) | |
tree | e63dcbc3cab904e59de4556fda6b3bb5405fb095 /fs | |
parent | a5277fe820ff7c6d367883d38509f7f62d599ec6 (diff) | |
download | history-c256ae39408bb913e6a722f7d9ccd4c89dfa08e5.tar.gz |
Subject: [PATCH] NFS: use attribute timeout instead of "noac" mount option
The behavior enabled by the "noac" mount option should be precisely
equivalent to setting acreg{min,max} or acdir{min,max} to zero via mount
options.
Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 77152ae38c5719..7399162c0b5c31 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -956,7 +956,7 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) status = nfs_wait_on_inode(inode, NFS_INO_REVALIDATING); if (status < 0) goto out_nowait; - if (NFS_SERVER(inode)->flags & NFS_MOUNT_NOAC) + if (NFS_ATTRTIMEO(inode) == 0) continue; if (NFS_FLAGS(inode) & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA|NFS_INO_INVALID_ATIME)) continue; |