diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-06-09 22:32:38 +0200 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-02 21:38:45 +0200 |
commit | 71680c18c8f22deafbaaf76d1c2d0eed2899a3d2 (patch) | |
tree | 19a4fae045bbbb083983bfdc0c76ad417db744df /fs/orangefs/orangefs-kernel.h | |
parent | orangefs: Use d_time to avoid excessive lookups (diff) | |
download | linux-71680c18c8f22deafbaaf76d1c2d0eed2899a3d2.tar.xz linux-71680c18c8f22deafbaaf76d1c2d0eed2899a3d2.zip |
orangefs: Cache getattr results.
The userspace component attempts to do this, but this will prevent
us from even needing to go into userspace to satisfy certain getattr
requests.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 4b6e132d5a0f..9338fe64820d 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h @@ -246,6 +246,8 @@ struct orangefs_inode_s { * with this object */ unsigned long pinode_flags; + + unsigned long getattr_time; }; #define P_ATIME_FLAG 0 @@ -527,7 +529,7 @@ int orangefs_inode_setxattr(struct inode *inode, size_t size, int flags); -int orangefs_inode_getattr(struct inode *inode, int new, int size); +int orangefs_inode_getattr(struct inode *inode, int new, int bypass); int orangefs_inode_check_changed(struct inode *inode); |