Lines Matching refs:netfs_group
228 static inline struct netfs_group *netfs_get_group(struct netfs_group *netfs_group) in netfs_get_group() argument
230 if (netfs_group && netfs_group != NETFS_FOLIO_COPY_TO_CACHE) in netfs_get_group()
231 refcount_inc(&netfs_group->ref); in netfs_get_group()
232 return netfs_group; in netfs_get_group()
238 static inline void netfs_put_group(struct netfs_group *netfs_group) in netfs_put_group() argument
240 if (netfs_group && in netfs_put_group()
241 netfs_group != NETFS_FOLIO_COPY_TO_CACHE && in netfs_put_group()
242 refcount_dec_and_test(&netfs_group->ref)) in netfs_put_group()
243 netfs_group->free(netfs_group); in netfs_put_group()
249 static inline void netfs_put_group_many(struct netfs_group *netfs_group, int nr) in netfs_put_group_many() argument
251 if (netfs_group && in netfs_put_group_many()
252 netfs_group != NETFS_FOLIO_COPY_TO_CACHE && in netfs_put_group_many()
253 refcount_sub_and_test(nr, &netfs_group->ref)) in netfs_put_group_many()
254 netfs_group->free(netfs_group); in netfs_put_group_many()