NFS: Clean up nfs_attribute_timeout()
It can be made static. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
这个提交包含在:
@@ -160,6 +160,13 @@ int nfs_sync_mapping(struct address_space *mapping)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int nfs_attribute_timeout(struct inode *inode)
|
||||
{
|
||||
struct nfs_inode *nfsi = NFS_I(inode);
|
||||
|
||||
return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->attrtimeo);
|
||||
}
|
||||
|
||||
static bool nfs_check_cache_invalid_delegated(struct inode *inode, unsigned long flags)
|
||||
{
|
||||
unsigned long cache_validity = READ_ONCE(NFS_I(inode)->cache_validity);
|
||||
@@ -1076,13 +1083,6 @@ out:
|
||||
return status;
|
||||
}
|
||||
|
||||
int nfs_attribute_timeout(struct inode *inode)
|
||||
{
|
||||
struct nfs_inode *nfsi = NFS_I(inode);
|
||||
|
||||
return !time_in_range_open(jiffies, nfsi->read_cache_jiffies, nfsi->read_cache_jiffies + nfsi->attrtimeo);
|
||||
}
|
||||
|
||||
int nfs_attribute_cache_expired(struct inode *inode)
|
||||
{
|
||||
if (nfs_have_delegated_attributes(inode))
|
||||
|
在新工单中引用
屏蔽一个用户