Searched refs:netfs_group (Results 1 – 7 of 7) sorted by relevance
16 static void __netfs_set_group(struct folio *folio, struct netfs_group *netfs_group) in __netfs_set_group() argument18 if (netfs_group) in __netfs_set_group()19 folio_attach_private(folio, netfs_get_group(netfs_group)); in __netfs_set_group()22 static void netfs_set_group(struct folio *folio, struct netfs_group *netfs_group) in netfs_set_group() argument26 if (unlikely(priv != netfs_group)) { in netfs_set_group()27 if (netfs_group && (!priv || priv == NETFS_FOLIO_COPY_TO_CACHE)) in netfs_set_group()28 folio_attach_private(folio, netfs_get_group(netfs_group)); in netfs_set_group()29 else if (!netfs_group && priv == NETFS_FOLIO_COPY_TO_CACHE) in netfs_set_group()97 struct netfs_group *netfs_group) in netfs_perform_write() argument145 struct netfs_group *group; in netfs_perform_write()[all …]
228 static inline struct netfs_group *netfs_get_group(struct netfs_group *netfs_group) in netfs_get_group() argument230 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() argument240 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[all …]
31 struct netfs_group *netfs_group) in netfs_unbuffered_write_iter_locked() argument
62 struct netfs_group *group = NULL; in netfs_folio_written_back()76 group = finfo->netfs_group; in netfs_folio_written_back()
51 struct netfs_group *group = NULL; in netfs_kill_dirty_pages()60 group = finfo->netfs_group; in netfs_kill_dirty_pages()327 struct netfs_group *fgroup; /* TODO: Use this with ceph */ in netfs_write_folio()
61 if (finfo->netfs_group) in netfs_unlock_read_folio()62 folio_change_private(folio, finfo->netfs_group); in netfs_unlock_read_folio()
84 struct netfs_group { struct86 void (*free)(struct netfs_group *netfs_group); argument94 struct netfs_group *netfs_group; /* Filesystem's grouping marker (or NULL). */ member99 #define NETFS_FOLIO_COPY_TO_CACHE ((struct netfs_group *)0x356UL) /* Write to the cache only */118 static inline struct netfs_group *netfs_folio_group(struct folio *folio) in netfs_folio_group()125 return finfo->netfs_group; in netfs_folio_group()238 struct netfs_group *group; /* Writeback group being written back */403 struct netfs_group *netfs_group);405 struct netfs_group *netfs_group);408 struct netfs_group *netfs_group);[all …]