]> git.karo-electronics.de Git - karo-tx-linux.git/commit
orangefs: clean up truncate ctime and mtime setting
authorMartin Brandenburg <martin@omnibond.com>
Mon, 4 Apr 2016 20:26:36 +0000 (16:26 -0400)
committerMike Marshall <hubcap@omnibond.com>
Fri, 8 Apr 2016 18:10:31 +0000 (14:10 -0400)
commitf83140c1467e22ba9ee9389bc4e6c3e117f2296e
tree1c0b480efa801c3395f4e6f77a37926705933c3b
parent2fa37fd71396b8eff72d23cafc8c583dd8eb928c
orangefs: clean up truncate ctime and mtime setting

The ctime and mtime are always updated on a successful ftruncate and
only updated on a successful truncate where the size changed.

We handle the ``if the size changed'' bit.

This matches FUSE's behavior.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/inode.c