From: NeilBrown Date: Tue, 18 Dec 2018 11:09:57 +1100 Subject: [lustre-devel] [PATCH 03/28] lustre: lov: merge lov_mds_md_v3 and lov_mds_md_v1 handling In-Reply-To: <1545064202-22483-4-git-send-email-jsimmons@infradead.org> References: <1545064202-22483-1-git-send-email-jsimmons@infradead.org> <1545064202-22483-4-git-send-email-jsimmons@infradead.org> Message-ID: <87pntzae5m.fsf@notabene.neil.brown.name> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lustre-devel@lists.lustre.org On Mon, Dec 17 2018, James Simmons wrote: > From: Bobi Jam > > Several of the struct lsm_operations functions for both v1 and v3 > are nearly identical. Let merge them together. Let's > > -const struct lsm_operations lsm_v1_ops = { > - .lsm_free = lsm_free_plain, > - .lsm_stripe_by_index = lsm_stripe_by_index_plain, > - .lsm_stripe_by_offset = lsm_stripe_by_offset_plain, > - .lsm_lmm_verify = lsm_lmm_verify_v1, > - .lsm_unpackmd = lsm_unpackmd_v1, > +const static struct lsm_operations lsm_v1_ops = { > + .lsm_stripe_by_index = lsm_stripe_by_index_plain, > + .lsm_stripe_by_offset = lsm_stripe_by_offset_plain, > + .lsm_lmm_verify = lsm_lmm_verify_v1, > + .lsm_unpackmd = lsm_unpackmd_v1, I *SO* wish you would stop combining white-spaces fixes with other changes in the same patch!!! The above hunk should just add the 'static' and remove the 'lsm_free'. The rest is just noise and makes it harder to review the patch. Thanks, NeilBrown -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 832 bytes Desc: not available URL: