From 76fd268d1b982e09e55d4bc161d1abf32f668afd Mon Sep 17 00:00:00 2001 From: Andrew Perepechko Date: Mon, 15 Nov 2010 15:21:11 +0300 Subject: [PATCH] b=23766 atime isn't properly updated on the MDS Based on the patch from Robin Humble (ANU) i=Andreas Dilger i=Vitaly Fertman --- lustre/mds/mds_open.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index e1fd5e6..2f845f4 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -1575,10 +1575,8 @@ int mds_mfd_close(struct ptlrpc_request *req, int offset, * is more out-of-date than the specified limit. If we are * already going to write out the atime then do it anyway. */ if ((request_body->valid & OBD_MD_FLATIME) && - ((LTIME_S(iattr.ia_atime) > - LTIME_S(inode->i_atime) + mds->mds_atime_diff) || - (iattr.ia_valid != 0 && - LTIME_S(iattr.ia_atime) > LTIME_S(inode->i_atime)))) { + ((request_body->atime > LTIME_S(inode->i_atime) + + mds->mds_atime_diff) )) { LTIME_S(iattr.ia_atime) = request_body->atime; iattr.ia_valid |= ATTR_ATIME; } -- 1.8.3.1