X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flov%2Flov_cl_internal.h;h=9563315d439d6df58f67d8e280ffc8565241b8a2;hb=14db1faa0f;hp=40a5836b706251e771046ab8cec93b7494fc4e5e;hpb=35b9575fd02f485f48793bedd5de270b826a82b1;p=fs%2Flustre-release.git diff --git a/lustre/lov/lov_cl_internal.h b/lustre/lov/lov_cl_internal.h index 40a5836..9563315 100644 --- a/lustre/lov/lov_cl_internal.h +++ b/lustre/lov/lov_cl_internal.h @@ -450,8 +450,6 @@ struct lov_lock { struct lov_page { struct cl_page_slice lps_cl; - /* the layout gen when this page was created */ - __u32 lps_layout_gen; }; /* @@ -521,6 +519,7 @@ struct lov_io_sub { /** * IO state private for LOV. */ +#define LIS_CACHE_ENTRY_NONE -ENOENT struct lov_io { /** super-class */ struct cl_io_slice lis_cl; @@ -586,7 +585,12 @@ struct lov_io { * All sub-io's created in this lov_io. */ struct list_head lis_subios; - + /* Cached results from stripe & offset calculations for page init */ + int lis_cached_entry; + int lis_cached_stripe; + loff_t lis_cached_off; + loff_t lis_cached_suboff; + struct lov_io_sub *lis_cached_sub; }; struct lov_session {