diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2016-10-17 11:14:23 +0300 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-10-24 21:50:07 +0300 |
commit | 804b1737d71253f01621d2a37a0dce6279a2d440 (patch) | |
tree | 51681efdf7acf968183be81bfa006207ea71064e /fs/orangefs/orangefs-kernel.h | |
parent | d62a9025aee446994a706c711e45c6a655d9d348 (diff) | |
download | linux-804b1737d71253f01621d2a37a0dce6279a2d440.tar.xz |
orangefs: don't use d_time
Instead use d_fsdata which is the same size. Hoping to get rid of d_time,
which is used by very few filesystems by this time.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index 0a82048f3aaf..3bf803d732c5 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h @@ -580,4 +580,11 @@ static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size) #endif } +static inline void orangefs_set_timeout(struct dentry *dentry) +{ + unsigned long time = jiffies + orangefs_dcache_timeout_msecs*HZ/1000; + + dentry->d_fsdata = (void *) time; +} + #endif /* __ORANGEFSKERNEL_H */ |