]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | |
3 | // vim: ts=8 sw=2 smarttab | |
4 | /* | |
5 | * Ceph - scalable distributed file system | |
6 | * | |
7 | * Copyright (C) 2017 Red Hat Inc | |
8 | * | |
9 | * This is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU Lesser General Public | |
11 | * License version 2.1, as published by the Free Software | |
12 | * Foundation. See file COPYING. | |
13 | * | |
14 | */ | |
15 | ||
16 | ||
17 | #include "Inode.h" | |
18 | ||
19 | #include "Fh.h" | |
20 | ||
f6b5b4d7 TL |
21 | Fh::Fh(InodeRef in, int flags, int cmode, uint64_t _gen, const UserPerm &perms) : |
22 | inode(in), _ref(1), pos(0), mds(0), mode(cmode), gen(_gen), flags(flags), | |
23 | pos_locked(false), actor_perms(perms), readahead() | |
7c673cae FG |
24 | { |
25 | inode->add_fh(this); | |
26 | } | |
27 | ||
28 | Fh::~Fh() | |
29 | { | |
30 | inode->rm_fh(this); | |
31 | } | |
32 |