Nikolay Borisov
87f9371aef
Simplify time handling logic in zfs_settattr
...
Simplify time handling in zfs_setattr by mimicking the logic in
setattr_copy from the linux kernel. In order to achieve this
in the case when ZFS' log is being replayed it is necessary
to unconditionally set the ctime in zfs_replay_setattr.
Also use the timespec_trunc function when assigning values to the
generic inode struct. This is currently a noop since zfs sets
s_time_gran to 1, however in the future rules about precision might
change.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Closes #4916
2016-09-13 12:00:18 -07:00
..
2016-09-13 09:59:13 -07:00
2014-08-01 14:28:05 -07:00
2015-01-16 14:41:26 -08:00
2015-05-11 15:10:24 -07:00
2016-01-08 15:08:19 -08:00
2016-01-08 20:23:23 -05:00
2016-09-13 09:58:33 -07:00
2016-09-13 09:58:58 -07:00
2015-01-16 14:41:26 -08:00
2016-08-31 14:35:34 -07:00
2016-09-13 09:58:33 -07:00
2016-06-24 13:13:21 -07:00
2016-09-13 09:58:58 -07:00
2016-09-13 09:58:58 -07:00
2016-09-13 09:58:33 -07:00
2016-08-19 12:48:03 -07:00
2016-08-30 14:26:55 -07:00
2016-09-13 09:59:13 -07:00
2016-09-13 09:58:33 -07:00
2016-09-13 09:58:33 -07:00
2016-06-28 13:47:03 -07:00
2016-09-13 09:58:58 -07:00
2016-08-31 14:35:34 -07:00
2016-08-31 14:35:34 -07:00
2016-06-28 13:47:02 -07:00
2016-06-28 13:47:03 -07:00
2016-05-27 14:11:25 -07:00
2016-09-12 09:45:26 -07:00
2016-09-13 09:58:33 -07:00
2015-05-04 09:41:10 -07:00
2016-06-28 13:47:03 -07:00
2016-09-01 11:39:45 -07:00
2013-12-18 16:46:35 -08:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2016-07-13 10:24:55 -07:00
2016-08-31 14:35:34 -07:00
2015-12-22 10:21:33 -08:00
2016-04-21 09:49:25 -07:00
2016-06-21 09:58:37 -07:00
2016-08-31 14:35:34 -07:00
2016-09-13 09:58:33 -07:00
2015-07-06 09:34:13 -07:00
2016-08-31 14:35:34 -07:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2016-08-12 13:06:48 -07:00
2014-08-06 14:48:41 -07:00
2016-08-11 11:23:49 -07:00
2016-08-31 14:35:34 -07:00
2015-06-11 10:27:25 -07:00
2016-09-12 12:40:03 -07:00
2016-01-08 15:08:19 -08:00
2016-08-31 14:35:34 -07:00
2016-05-26 10:11:51 -07:00
2016-07-27 14:11:13 -07:00
2015-07-14 10:35:21 -07:00
2016-08-31 14:35:34 -07:00
2016-08-31 14:35:34 -07:00
2016-08-11 11:19:34 -07:00
2016-05-26 10:11:51 -07:00
2016-08-31 14:35:34 -07:00
2016-02-26 11:24:35 -08:00
2015-04-30 15:07:47 -07:00
2016-08-31 14:35:34 -07:00
2016-07-19 16:43:07 -07:00
2016-06-21 09:27:26 -07:00
2016-07-19 16:43:07 -07:00
2016-07-13 10:24:55 -07:00
2016-07-19 16:43:07 -07:00
2016-08-22 10:05:45 -07:00
2016-08-09 14:40:35 -07:00
2013-10-31 14:58:04 -07:00
2016-09-01 11:39:45 -07:00
2015-04-28 16:25:20 -07:00
2016-08-31 14:35:34 -07:00
2016-08-19 12:48:03 -07:00
2016-06-24 13:13:21 -07:00
2016-05-17 11:52:07 -07:00
2016-08-08 10:47:43 -07:00
2010-08-31 13:41:58 -07:00
2016-07-25 13:21:49 -07:00
2015-09-04 16:08:14 -07:00
2016-07-25 13:21:49 -07:00
2016-09-01 11:39:45 -07:00
2016-08-31 14:35:34 -07:00
2016-09-13 09:58:58 -07:00
2016-07-25 13:21:49 -07:00
2015-06-22 17:02:13 -07:00
2016-09-13 12:00:18 -07:00
2016-08-31 14:35:34 -07:00
2016-07-14 16:25:34 -07:00
2016-07-25 13:21:49 -07:00
2016-09-13 12:00:18 -07:00
2016-09-13 11:57:37 -07:00
2016-09-13 09:58:33 -07:00
2016-09-13 09:58:33 -07:00
2015-07-10 12:11:45 -07:00
2016-05-26 10:11:51 -07:00
2016-09-13 09:59:04 -07:00
2010-05-28 13:45:14 -07:00
2016-08-11 12:06:37 -07:00
2015-08-31 13:54:39 -07:00
2016-08-11 12:06:37 -07:00
2016-09-13 12:00:18 -07:00
2016-05-31 16:04:26 -07:00
2016-08-09 10:03:04 -07:00
2015-04-30 14:43:40 -07:00
2016-08-11 11:19:34 -07:00