summaryrefslogtreecommitdiffstats
path: root/src/client/Inode.h
diff options
context:
space:
mode:
authorZhi Zhang <willzzhang@tencent.com>2018-11-07 11:19:03 +0100
committerZhi Zhang <willzzhang@tencent.com>2018-11-19 04:20:16 +0100
commit8469a81625180668a9dec840293013be019236b8 (patch)
treecc4700472633951b39146a00ff1ca56a5221f009 /src/client/Inode.h
parentMerge pull request #24920 from wjwithagen/wjw-fix-build-symbolic (diff)
downloadceph-8469a81625180668a9dec840293013be019236b8.tar.xz
ceph-8469a81625180668a9dec840293013be019236b8.zip
client: support getfattr ceph.dir.pin extended attribute
Fixes: http://tracker.ceph.com/issues/36707 Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
Diffstat (limited to 'src/client/Inode.h')
-rw-r--r--src/client/Inode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/Inode.h b/src/client/Inode.h
index 41c4e611025..296017d4c85 100644
--- a/src/client/Inode.h
+++ b/src/client/Inode.h
@@ -263,6 +263,8 @@ struct Inode {
std::set<Fh*> fhs;
+ mds_rank_t dir_pin;
+
Inode(Client *c, vinodeno_t vino, file_layout_t *newlayout)
: client(c), ino(vino.ino), snapid(vino.snapid), faked_ino(0),
rdev(0), mode(0), uid(0), gid(0), nlink(0),
@@ -278,7 +280,7 @@ struct Inode {
snaprealm(0), snaprealm_item(this),
oset((void *)this, newlayout->pool_id, this->ino),
reported_size(0), wanted_max_size(0), requested_max_size(0),
- _ref(0), ll_ref(0)
+ _ref(0), ll_ref(0), dir_pin(MDS_RANK_NONE)
{
memset(&dir_layout, 0, sizeof(dir_layout));
}