Home
last modified time | relevance | path

Searched refs:netfs_group (Results 1 – 8 of 8) sorted by relevance

/linux/fs/netfs/
H A Dbuffered_write.c88 struct netfs_group *netfs_group) in netfs_perform_write() argument
136 struct netfs_group *group; in netfs_perform_write()
200 if (unlikely(group != netfs_group) && in netfs_perform_write()
203 WARN_ON_ONCE(!netfs_group); in netfs_perform_write()
318 finfo->netfs_group = netfs_get_group(netfs_group); in netfs_perform_write()
365 if (likely(priv == netfs_group)) { in netfs_perform_write()
368 if (!netfs_group) in netfs_perform_write()
371 folio_change_private(folio, netfs_get_group(netfs_group)); in netfs_perform_write()
373 folio_attach_private(folio, netfs_get_group(netfs_group)); in netfs_perform_write()
376 if (netfs_group) in netfs_perform_write()
[all …]
H A Dinternal.h245 static inline struct netfs_group *netfs_get_group(struct netfs_group *netfs_group) in netfs_get_group() argument
247 if (netfs_group && netfs_group != NETFS_FOLIO_COPY_TO_CACHE) in netfs_get_group()
248 refcount_inc(&netfs_group->ref); in netfs_get_group()
249 return netfs_group; in netfs_get_group()
255 static inline void netfs_put_group(struct netfs_group *netfs_group) in netfs_put_group() argument
257 if (netfs_group && in netfs_put_group()
258 netfs_group != NETFS_FOLIO_COPY_TO_CACHE && in netfs_put_group()
259 refcount_dec_and_test(&netfs_group->ref)) in netfs_put_group()
260 netfs_group->free(netfs_group); in netfs_put_group()
266 static inline void netfs_put_group_many(struct netfs_group *netfs_group, int nr) in netfs_put_group_many() argument
[all …]
H A Ddirect_write.c220 struct netfs_group *netfs_group) in netfs_unbuffered_write_iter_locked() argument
H A Dwrite_collect.c63 struct netfs_group *group = NULL; in netfs_folio_written_back()
79 group = finfo->netfs_group; in netfs_folio_written_back()
H A Dwrite_issue.c51 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()
H A Dread_collect.c61 if (finfo->netfs_group) in netfs_unlock_read_folio()
62 folio_change_private(folio, finfo->netfs_group); in netfs_unlock_read_folio()
H A Dbuffered_read.c398 struct netfs_group *group = netfs_folio_group(folio); in netfs_read_gaps()
/linux/include/linux/
H A Dnetfs.h81 struct netfs_group { struct
83 void (*free)(struct netfs_group *netfs_group); argument
91 struct netfs_group *netfs_group; /* Filesystem's grouping marker (or NULL). */ member
96 #define NETFS_FOLIO_COPY_TO_CACHE ((struct netfs_group *)0x356UL) /* Write to the cache only */
115 static inline struct netfs_group *netfs_folio_group(struct folio *folio) in netfs_folio_group()
122 return finfo->netfs_group; in netfs_folio_group()
237 struct netfs_group *group; /* Writeback group being written back */
398 struct netfs_group *netfs_group);
400 struct netfs_group *netfs_group);
403 struct netfs_group *netfs_group);
[all …]