Don't wait pf_unregister_probe() call after pf_register_probe()
one to release dentry because dentry is captured and released
automatically.
Change-Id: Ia2cc749487a7dc815d1a26205771011a0cac4108
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
#include <linux/slab.h>
#include <linux/dcache.h>
#include <linux/atomic.h>
+#include <us_manager/swap_dcache.h>
static atomic_t file_counter = ATOMIC_INIT(0);
}
atomic_inc(&file_counter);
- file->dentry = dentry;
+ file->dentry = swap_dget(dentry);
INIT_LIST_HEAD(&file->list);
INIT_LIST_HEAD(&file->ips.head);
mutex_init(&file->ips.mtx);
}
atomic_dec(&file_counter);
+ swap_dput(file->dentry);
kfree(file);
}