Whamcloud - gitweb
LU-10030 hsm: make changelog flag argument an enum 12/32112/6
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Sep 2018 07:51:29 +0000 (01:51 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 13 Nov 2018 06:16:35 +0000 (06:16 +0000)
commit2496089a0017f5b0ff94a7a7994f4c62c8f30d94
treecf517cf65e4fc4e6841af8a5303e91d49c190912
parenta3b6109705dc7b0e2bc376e3b55c8434d0fa0a39
LU-10030 hsm: make changelog flag argument an enum

Since the changelog record flag is being stored on disk, pass it
around as an enum instead of a signed int.  Also make it clear at
the caller that only the low 12 bits of the flag are normally
being stored in the changelog records, since this isn't obvious
to the reader.  For open and close records, the bottom 32 bits
of open flags are recorded.

Test-Parameters: trivial testlist=sanity-hsm
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie676fb6bfd3661645dde845fd9ca8bad283ebbe5
Reviewed-on: https://review.whamcloud.com/32112
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/md_object.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_coordinator.c