* [PATCH 0/7] Delete timespec64_trunc()
@ 2019-11-30 5:30 Deepa Dinamani
2019-11-30 5:30 ` [PATCH 4/7] fs: ceph: Delete timespec64_trunc() usage Deepa Dinamani
0 siblings, 1 reply; 2+ messages in thread
From: Deepa Dinamani @ 2019-11-30 5:30 UTC (permalink / raw)
To: viro, linux-kernel
Cc: linux-fsdevel, arnd, hirofumi, jlayton, richard, stfrench,
ceph-devel, linux-cifs, linux-mtd
This series aims at deleting timespec64_trunc().
There is a new api: timestamp_truncate() that is the
replacement api. The api additionally does a limits
check on the filesystem timestamps.
The suggestion to open code some of the truncate logic
came from Al Viro. And, this does make the code in some
filesystems easy to follow.
The series also does some update_time() cleanup as
suggested by Al Viro.
Deepa Dinamani (7):
fs: fat: Eliminate timespec64_trunc() usage
fs: cifs: Fix atime update check vs mtime
fs: cifs: Delete usage of timespec64_trunc
fs: ceph: Delete timespec64_trunc() usage
fs: ubifs: Eliminate timespec64_trunc() usage
fs: Delete timespec64_trunc()
fs: Do not overload update_time
fs/ceph/mds_client.c | 3 +--
fs/cifs/inode.c | 15 ++++++++-------
fs/fat/misc.c | 10 +++++++++-
fs/inode.c | 30 +++---------------------------
fs/ubifs/sb.c | 11 ++++-------
include/linux/fs.h | 1 -
6 files changed, 25 insertions(+), 45 deletions(-)
--
2.17.1
Cc: hirofumi@mail.parknet.co.jp
Cc: jlayton@kernel.org
Cc: richard@nod.at
Cc: stfrench@microsoft.com
Cc: ceph-devel@vger.kernel.org
Cc: linux-cifs@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 4/7] fs: ceph: Delete timespec64_trunc() usage
2019-11-30 5:30 [PATCH 0/7] Delete timespec64_trunc() Deepa Dinamani
@ 2019-11-30 5:30 ` Deepa Dinamani
0 siblings, 0 replies; 2+ messages in thread
From: Deepa Dinamani @ 2019-11-30 5:30 UTC (permalink / raw)
To: viro, linux-kernel; +Cc: linux-fsdevel, arnd, jlayton, ceph-devel
Since ceph always uses ns granularity, skip the
truncation which is a no-op.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: jlayton@kernel.org
Cc: ceph-devel@vger.kernel.org
---
fs/ceph/mds_client.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 068b029cf073..c2aa290f6c3e 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2088,8 +2088,7 @@ ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op, int mode)
init_completion(&req->r_safe_completion);
INIT_LIST_HEAD(&req->r_unsafe_item);
- ktime_get_coarse_real_ts64(&ts);
- req->r_stamp = timespec64_trunc(ts, mdsc->fsc->sb->s_time_gran);
+ ktime_get_coarse_real_ts64(&req->r_stamp);
req->r_op = op;
req->r_direct_mode = mode;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-30 5:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-30 5:30 [PATCH 0/7] Delete timespec64_trunc() Deepa Dinamani
2019-11-30 5:30 ` [PATCH 4/7] fs: ceph: Delete timespec64_trunc() usage Deepa Dinamani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox