diff options
author | Sage Weil <sage@inktank.com> | 2013-08-09 12:42:49 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-22 10:14:32 -0700 |
commit | bc997ebea3263c2bc7df83661ae3a966470ba35e (patch) | |
tree | 36c4c0ebf194a2598c10251ecd8fbfd3b7f4dd2d | |
parent | 9cb2c2eb3627b52c3413b39b45e7fb7e0e9a074c (diff) | |
download | ceph-bc997ebea3263c2bc7df83661ae3a966470ba35e.tar.gz |
fuse: fix warning when compiled against old fuse versions
client/fuse_ll.cc: In function 'void invalidate_cb(void*, vinodeno_t, int64_t, int64_t)':
warning: client/fuse_ll.cc:540: unused variable 'fino'
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 9833e9dabe010e538cb98c51d79b6df58ce28f9e)
-rw-r--r-- | src/client/fuse_ll.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 57d79dfbe03..22d11846bc1 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -505,9 +505,9 @@ static int getgroups_cb(void *handle, uid_t uid, gid_t **sgids) static void invalidate_cb(void *handle, vinodeno_t vino, int64_t off, int64_t len) { +#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 8) CephFuse::Handle *cfuse = (CephFuse::Handle *)handle; fuse_ino_t fino = cfuse->make_fake_ino(vino.ino, vino.snapid); -#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 8) fuse_lowlevel_notify_inval_inode(cfuse->ch, fino, off, len); #endif } |