linux/fs/fuse
Miklos Szeredi 0a0898cf41 [PATCH] fuse: use jiffies_64
It is entirely possible (though rare) that jiffies half-wraps around, while a
dentry/inode remains in the cache.  This could mean that the dentry/inode is
not invalidated for another half wraparound-time.

To get around this problem, use 64-bit jiffies.  The only problem with this is
that dentry->d_time is 32 bits on 32-bit archs.  So use d_fsdata as the high
32 bits.  This is an ugly hack, but far simpler, than having to allocate
private data just for this purpose.

Since 64-bit jiffies can be assumed never to wrap around, simple comparison
can be used, and a zero time value can represent "invalid".

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-31 13:28:43 -07:00
..
Makefile [PATCH] fuse: add control filesystem 2006-06-25 10:01:19 -07:00
control.c [PATCH] fuse: add control filesystem 2006-06-25 10:01:19 -07:00
dev.c [PATCH] fuse: add request interruption 2006-06-25 10:01:19 -07:00
dir.c [PATCH] fuse: use jiffies_64 2006-07-31 13:28:43 -07:00
file.c [PATCH] mark address_space_operations const 2006-06-28 14:59:04 -07:00
fuse_i.h [PATCH] fuse: use jiffies_64 2006-07-31 13:28:43 -07:00
inode.c [PATCH] fuse: use jiffies_64 2006-07-31 13:28:43 -07:00