netfs: Limit subrequest by size or number of segments
[linux-2.6-microblaze.git] / include / linux / netfs.h
index d673d07..44cd13a 100644 (file)
@@ -161,6 +161,7 @@ struct netfs_io_subrequest {
        refcount_t              ref;
        short                   error;          /* 0 or error that occurred */
        unsigned short          debug_index;    /* Index in list (for debugging output) */
+       unsigned int            max_nr_segs;    /* 0 or max number of segments in an iterator */
        enum netfs_io_source    source;         /* Where to read from/write to */
        unsigned long           flags;
 #define NETFS_SREQ_COPY_TO_CACHE       0       /* Set if should copy the data to the cache */