netfs: Add a struct to group modifications together and flushed in order

Define struct netfs_flush_group for use in grouping related modifications
together so that they can be flushed in some sort of order (ceph snaps, for
instance).  The netfs gets to start a new flush group when it needs to and
this is added to the end of the fifo.  When writes need to be written out,
the flusher can only flush modifications from a group if all preceding
groups have already been flushed.

Implement object lifecycle functions for the struct.

Display the count of extant netfs_flush_group structs in proc.

Signed-off-by: David Howells <dhowells@redhat.com>
8 files changed