X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Fcl_object.h;h=61338cd2a11838988762ea15b39fea6d779b0c71;hb=10da8afb278634a40be72f48dae42ce9755c62a0;hp=d8ed0653207e641948d46799d25cea882d5c0b74;hpb=b601f8997dd5c666d49fc2e2ea15196dfc917a2d;p=fs%2Flustre-release.git diff --git a/lustre/include/cl_object.h b/lustre/include/cl_object.h index d8ed065..61338cd 100644 --- a/lustre/include/cl_object.h +++ b/lustre/include/cl_object.h @@ -1796,6 +1796,8 @@ struct cl_io { struct cl_lockset ci_lockset; /** lock requirements, this is just a help info for sublayers. */ enum cl_io_lock_dmd ci_lockreq; + /** layout version when this IO occurs */ + __u32 ci_layout_version; union { struct cl_rw_io { struct iov_iter rw_iter; @@ -1871,8 +1873,10 @@ struct cl_io { */ ci_ignore_layout:1, /** - * Need MDS intervention to complete a write. This usually means the - * corresponding component is not initialized for the writing extent. + * Need MDS intervention to complete a write. + * Write intent is required for the following cases: + * 1. component being written is not initialized, or + * 2. the mirrored files are NOT in WRITE_PENDING state. */ ci_need_write_intent:1, /**