aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-07-13 16:18:37 -0400
committerIlya Dryomov <idryomov@gmail.com>2018-08-02 15:33:14 -0400
commitfac02ddf910814c24f5d9d969dfdab5227f6f3eb (patch)
tree1725d192db8d99bbc738b5d1ed576df07eac8276 /drivers/block
parent9bbeab41ce50542624ef381e7852d70f2f39a2b1 (diff)
libceph: use timespec64 for r_mtime
The request mtime field is used all over ceph, and is currently represented as a 'timespec' structure in Linux. This changes it to timespec64 to allow times beyond 2038, modifying all users at the same time. [ Remove now redundant ts variable in writepage_nounlock(). ] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index c680de15fae0..11f9be10e3fa 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -1466,7 +1466,7 @@ static void rbd_osd_req_format_write(struct rbd_obj_request *obj_request)
1466 struct ceph_osd_request *osd_req = obj_request->osd_req; 1466 struct ceph_osd_request *osd_req = obj_request->osd_req;
1467 1467
1468 osd_req->r_flags = CEPH_OSD_FLAG_WRITE; 1468 osd_req->r_flags = CEPH_OSD_FLAG_WRITE;
1469 ktime_get_real_ts(&osd_req->r_mtime); 1469 ktime_get_real_ts64(&osd_req->r_mtime);
1470 osd_req->r_data_offset = obj_request->ex.oe_off; 1470 osd_req->r_data_offset = obj_request->ex.oe_off;
1471} 1471}
1472 1472