diff options
author | Yan, Zheng <zyan@redhat.com> | 2014-12-23 15:30:54 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-02-19 13:31:38 +0300 |
commit | 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 (patch) | |
tree | 3d1ee68f03edac2d64b7683baf15821cf14bdef7 /fs/nls/nls_cp864.c | |
parent | 1487a688d8ea596e6710b0d256300ab10ce99284 (diff) |
ceph: improve reference tracking for snaprealm
When snaprealm is created, its initial reference count is zero.
But in some rare cases, the newly created snaprealm is not referenced
by anyone. This causes snaprealm with zero reference count not freed.
The fix is set reference count of newly snaprealm to 1. The reference
is return the function who requests to create the snaprealm. When the
function finishes its job, it releases the reference.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/nls/nls_cp864.c')
0 files changed, 0 insertions, 0 deletions