osc_cleanup() doesn't exist, so remove declaration.
Return value of osc_extent_release() is always zero and never used, so
change it to 'void'.
Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I048e4ec1ec62d2b576f2a1e3c6148c0121cd91b6
Reviewed-on: https://review.whamcloud.com/39737
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
/**
* Drop user count of osc_extent, and unplug IO asynchronously.
*/
/**
* Drop user count of osc_extent, and unplug IO asynchronously.
*/
-int osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
+void osc_extent_release(const struct lu_env *env, struct osc_extent *ext)
{
struct osc_object *obj = ext->oe_obj;
struct client_obd *cli = osc_cli(obj);
{
struct osc_object *obj = ext->oe_obj;
struct client_obd *cli = osc_cli(obj);
ENTRY;
LASSERT(atomic_read(&ext->oe_users) > 0);
ENTRY;
LASSERT(atomic_read(&ext->oe_users) > 0);
osc_io_unplug_async(env, cli, obj);
}
osc_extent_put(env, ext);
osc_io_unplug_async(env, cli, obj);
}
osc_extent_put(env, ext);
int lru_queue_work(const struct lu_env *env, void *data);
int osc_extent_finish(const struct lu_env *env, struct osc_extent *ext,
int sent, int rc);
int lru_queue_work(const struct lu_env *env, void *data);
int osc_extent_finish(const struct lu_env *env, struct osc_extent *ext,
int sent, int rc);
-int osc_extent_release(const struct lu_env *env, struct osc_extent *ext);
+void osc_extent_release(const struct lu_env *env, struct osc_extent *ext);
int osc_lock_discard_pages(const struct lu_env *env, struct osc_object *osc,
pgoff_t start, pgoff_t end, bool discard);
int osc_lock_discard_pages(const struct lu_env *env, struct osc_object *osc,
pgoff_t start, pgoff_t end, bool discard);
unsigned long osc_ldlm_weigh_ast(struct ldlm_lock *dlmlock);
unsigned long osc_ldlm_weigh_ast(struct ldlm_lock *dlmlock);
-int osc_cleanup(struct obd_device *obd);
int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
int osc_tunables_init(struct obd_device *obd);
int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
int osc_tunables_init(struct obd_device *obd);