summaryrefslogtreecommitdiff
path: root/fs/orangefs/orangefs-kernel.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2016-10-17 11:14:23 +0300
committerMike Marshall <hubcap@omnibond.com>2016-10-24 21:50:07 +0300
commit804b1737d71253f01621d2a37a0dce6279a2d440 (patch)
tree51681efdf7acf968183be81bfa006207ea71064e /fs/orangefs/orangefs-kernel.h
parentd62a9025aee446994a706c711e45c6a655d9d348 (diff)
downloadlinux-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.h7
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 */