Whamcloud - gitweb
LU-12026 mdt: MDS stores atime|mtime|ctime during close 69/36869/3
authorQian Yingjin <qian@ddn.com>
Wed, 25 Sep 2019 09:14:12 +0000 (17:14 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Jan 2020 20:14:08 +0000 (20:14 +0000)
commitb67e307f2d332c2ab1643aaa04c19c024a37b22a
treed355c34d0b8bce9d85457ed09fc930f5850047cb
parentb75f04d5855d7ac4de98fe89686ae685c19c2f97
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.

Lustre-change: https://review.whamcloud.com/36286
Lustre-commit: d2f7cb7934a0b38fa9503e8257f2b70ed656c11d

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