mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
orangefs: Allow dcache and getattr cache time to be configured.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
This commit is contained in:
parent
71680c18c8
commit
4cd8f31944
6 changed files with 52 additions and 7 deletions
|
@ -347,7 +347,7 @@ int orangefs_inode_getattr(struct inode *inode, int new, int bypass)
|
|||
inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) |
|
||||
orangefs_inode_perms(&new_op->downcall.resp.getattr.attributes);
|
||||
|
||||
orangefs_inode->getattr_time = jiffies + HZ;
|
||||
orangefs_inode->getattr_time = jiffies + getattr_timeout_msecs*HZ/1000;
|
||||
ret = 0;
|
||||
out:
|
||||
op_release(new_op);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue