ceph: fix update of ctime from MDS
authorSage Weil <sage@newdream.net>
Mon, 8 Nov 2010 17:24:34 +0000 (09:24 -0800)
committerSage Weil <sage@newdream.net>
Mon, 8 Nov 2010 17:24:34 +0000 (09:24 -0800)
commitd8672d64b88cdb7aa8139fb6d218f40b8cbf60af
tree71d955bc89b33df3f838f8e1e8c0cbcd3f2bfc62
parent8bd59e0188c04f6540f00e13f633f22e4804ce06
ceph: fix update of ctime from MDS

The client can have a newer ctime than the MDS due to AUTH_EXCL and
XATTR_EXCL caps as well; update the check in ceph_fill_file_time
appropriately.

This fixes cases where ctime/mtime goes backward under the right sequence
of local updates (e.g. chmod) and mds replies (e.g. subsequent stat that
goes to the MDS).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/inode.c