]> git.baikalelectronics.ru Git - kernel.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)
commitfa93c4bec6b0fa06ca1ad789545586f7755ba95e
tree1c0b480efa801c3395f4e6f77a37926705933c3b
parent2464e80f5dc5e745e613263a100a1a64018e7118
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