diff --git a/fs/ceph/file.c b/fs/ceph/file.c index d5bee928603acb..95685b4aac48ee 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -1011,7 +1011,7 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, * may block. */ truncate_inode_pages_range(inode->i_mapping, pos, - (pos+len) | (PAGE_SIZE - 1)); + PAGE_ALIGN(pos + len) - 1); req->r_mtime = mtime; }