summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2013-08-26 11:23:08 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2013-08-26 11:23:08 +0200
commit46f1ac6c1a280706aa290bcc60349eb5f843cf17 (patch)
tree5356c789935ca836be3c8010f3c6403f76b6acfc
parent9ffe64abe1916d1f82ad593e5106fdfaad92e2d8 (diff)
downloadfuse-46f1ac6c1a280706aa290bcc60349eb5f843cf17.tar.gz
Change generation and nlookup from 'unsigned long' to 'uint64_t'
-rw-r--r--include/fuse_lowlevel.h4
-rw-r--r--lib/fuse.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index df1f770..595f061 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -88,7 +88,7 @@ struct fuse_entry_param {
* it as an error.
*
*/
- unsigned long generation;
+ uint64_t generation;
/** Inode attributes.
*
@@ -233,7 +233,7 @@ struct fuse_lowlevel_ops {
* @param ino the inode number
* @param nlookup the number of lookups to forget
*/
- void (*forget) (fuse_req_t req, fuse_ino_t ino, unsigned long nlookup);
+ void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);
/**
* Get file attributes
diff --git a/lib/fuse.c b/lib/fuse.c
index ea96892..e4031c7 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -2529,8 +2529,7 @@ static void do_forget(struct fuse *f, fuse_ino_t ino, uint64_t nlookup)
forget_node(f, ino, nlookup);
}
-static void fuse_lib_forget(fuse_req_t req, fuse_ino_t ino,
- unsigned long nlookup)
+static void fuse_lib_forget(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup)
{
do_forget(req_fuse(req), ino, nlookup);
fuse_reply_none(req);