Whamcloud - gitweb
LU-12026 mdt: MDS stores atime|mtime|ctime during close 86/36286/9
authorQian Yingjin <qian@ddn.com>
Wed, 25 Sep 2019 09:14:12 +0000 (17:14 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 Oct 2019 23:57:39 +0000 (23:57 +0000)
commitd2f7cb7934a0b38fa9503e8257f2b70ed656c11d
treef1f7050a05c61cc529e8381f6d37ad5e79155b6e
parent9e2620d75cce1e1b4855704ddd9a994ce8e8d650
LU-12026 mdt: MDS stores atime|mtime|ctime during close

In order to make direct inode scanning on the MDT useful, in
addition to storing the file size/blocks via LSOM on the MDT, we
also need to store the atime/mtime/ctime on the MDT inodes.

Currently the atime is already lazily updated on the MDS (at
close time). In this patch, the final mtime/ctime are sent to the
MDS at close time and updated on the MDT inode, and make MDT-only
scanning workable.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I4465281a03d70919c388cb241c16eebcb03e850f
Reviewed-on: https://review.whamcloud.com/36286
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_open.c
lustre/tests/sanityn.sh