Whamcloud - gitweb
LU-9184 grants: move grant code to the target 20/25820/7
authorMikhal Pershin <mike.pershin@intel.com>
Tue, 6 Dec 2016 11:06:48 +0000 (14:06 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Apr 2017 04:47:01 +0000 (04:47 +0000)
commite9389613eb29297f7b5a6b6cd896bafc7a5551f8
tree9db8c059b2d22d47e95e9f4228a81e6755d4d7d9
parent70d70c4f541c84adc88c372d670cd3a7fa8bc91f
LU-9184 grants: move grant code to the target

Make grants code common for MDT and OST.
- move grants field from OFD to the lu_target
- same for statfs
- make ofd_grants.c independent from OFD
- move ofd_grants.c to the tgt_grants.c

This work was done for Data-on-MDT feature but it
is needed also for better space control on MDT as
well, e.g. for lfsck, HSM, etc.

Signed-off-by: Mikhal Pershin <mike.pershin@intel.com>
Change-Id: I43930b32b271c9e850aa2783795e7cce12830cd5
Reviewed-on: https://review.whamcloud.com/25820
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
lustre/include/lu_target.h
lustre/include/lustre_export.h
lustre/ofd/Makefile.in
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_obd.c
lustre/ptlrpc/Makefile.in
lustre/target/Makefile.am
lustre/target/tgt_grant.c [moved from lustre/ofd/ofd_grant.c with 60% similarity]
lustre/target/tgt_handler.c
lustre/target/tgt_internal.h