diff options
author | Xiubo Li <xiubli@redhat.com> | 2021-02-10 07:17:11 +0100 |
---|---|---|
committer | Xiubo Li <xiubli@redhat.com> | 2021-08-16 07:26:03 +0200 |
commit | d4688848fa4710d50db5488eaefd05defcb78263 (patch) | |
tree | 5a71fac36d7d6a25f3dfcb2da80d74e5f831b946 /src/client/Fh.cc | |
parent | client: switch to use shared_ptr for mds_sessions (diff) | |
download | ceph-d4688848fa4710d50db5488eaefd05defcb78263.tar.xz ceph-d4688848fa4710d50db5488eaefd05defcb78263.zip |
client: adjust the Fh class members order
Some members once ininitalized in the Fh constructor they won't
change in the whole lifetime, and putting them under the client_lock
makes no sense.
And this could help simplify the inode lock code in some cases.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Diffstat (limited to 'src/client/Fh.cc')
-rw-r--r-- | src/client/Fh.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Fh.cc b/src/client/Fh.cc index e72390df714..e7dd10b3666 100644 --- a/src/client/Fh.cc +++ b/src/client/Fh.cc @@ -19,7 +19,7 @@ #include "Fh.h" Fh::Fh(InodeRef in, int flags, int cmode, uint64_t _gen, const UserPerm &perms) : - inode(in), mode(cmode), gen(_gen), flags(flags), actor_perms(perms), + inode(in), flags(flags), gen(_gen), actor_perms(perms), mode(cmode), readahead() { inode->add_fh(this); |