#include <linux/limits.h>
#include <linux/uaccess.h>
#include <master/swap_debugfs.h>
-#include <us_manager/us_common_file.h>
+#include <us_manager/swap_dcache.h>
#include "loader_defs.h"
#include "loader_debugfs.h"
#include "loader_module.h"
{
__loader_info.path = path;
dentry_lock();
- __loader_info.dentry = swap_get_dentry(__loader_info.path);
+ __loader_info.dentry = swap_dget_by_path(__loader_info.path);
dentry_unlock();
}
__loader_info.path = NULL;
dentry_lock();
- if (__loader_info.dentry != NULL)
- swap_put_dentry(__loader_info.dentry);
-
+ swap_dput(__loader_info.dentry);
__loader_info.dentry = NULL;
__loader_info.offset = 0;
-
dentry_unlock();
}
#include <linux/fs.h>
#include <linux/list.h>
#include <ks_features/ks_map.h>
-#include <us_manager/us_common_file.h>
+#include <us_manager/swap_dcache.h>
#include "loader_defs.h"
#include "loader_module.h"
#include "loader_storage.h"
struct bin_info_el *bin;
int ret = 0;
- dentry = swap_get_dentry(path);
+ dentry = swap_dget_by_path(path);
if (!dentry) {
ret = -ENOENT;
goto add_handler_out;
kfree(bin);
add_handler_fail_release_dentry:
- swap_put_dentry(dentry);
+ swap_dput(dentry);
add_handler_out:
return ret;
static inline void __remove_handler(struct bin_info_el *bin)
{
list_del(&bin->list);
- swap_put_dentry(bin->dentry);
+ swap_dput(bin->dentry);
kfree(bin->path);
kfree(bin);
}
goto init_linker_fail;
}
- dentry = swap_get_dentry(path);
+ dentry = swap_dget_by_path(path);
if (!dentry) {
ret = -ENOENT;
goto init_linker_fail_free;
kfree(__linker_info.path);
__linker_info.path = NULL;
- if (__linker_info.dentry)
- swap_put_dentry(__linker_info.dentry);
+ swap_dput(__linker_info.dentry);
__linker_info.dentry = NULL;
}