Home
last modified time | relevance | path

Searched refs:asw (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Dsocket_adapter.h167 void asw_put(struct hmdfs_async_work *asw);
168 static inline void asw_done(struct hmdfs_async_work *asw) in asw_done() argument
170 if (asw->page) in asw_done()
171 unlock_page(asw->page); in asw_done()
172 asw_put(asw); in asw_done()
175 static inline void asw_get(struct hmdfs_async_work *asw) in asw_get() argument
177 kref_get(&asw->head.ref); in asw_get()
H A Dsocket_adapter.c603 struct hmdfs_async_work *asw = NULL; in asw_release() local
606 asw = (struct hmdfs_async_work *)container_of(kref, in asw_release()
608 peer = asw->head.peer; in asw_release()
609 idr_remove(&peer->msg_idr, asw->head.msg_id); in asw_release()
611 kfree(asw); in asw_release()
614 void asw_put(struct hmdfs_async_work *asw) in asw_put() argument
616 kref_put_lock(&asw->head.ref, asw_release, &asw->head.peer->idr_lock); in asw_put()
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Dsocket_adapter.h167 void asw_put(struct hmdfs_async_work *asw);
168 static inline void asw_done(struct hmdfs_async_work *asw) in asw_done() argument
170 if (asw->page) in asw_done()
171 unlock_page(asw->page); in asw_done()
172 asw_put(asw); in asw_done()
175 static inline void asw_get(struct hmdfs_async_work *asw) in asw_get() argument
177 kref_get(&asw->head.ref); in asw_get()
H A Dsocket_adapter.c603 struct hmdfs_async_work *asw = NULL; in asw_release() local
606 asw = (struct hmdfs_async_work *)container_of(kref, in asw_release()
608 peer = asw->head.peer; in asw_release()
609 idr_remove(&peer->msg_idr, asw->head.msg_id); in asw_release()
611 kfree(asw); in asw_release()
614 void asw_put(struct hmdfs_async_work *asw) in asw_put() argument
616 kref_put_lock(&asw->head.ref, asw_release, &asw->head.peer->idr_lock); in asw_put()

Completed in 8 milliseconds