projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ceph: limit osd write size
[platform/kernel/linux-rpi.git]
/
fs
/
ceph
/
file.c
diff --git
a/fs/ceph/file.c
b/fs/ceph/file.c
index
85f0dba
..
a39ff54
100644
(file)
--- a/
fs/ceph/file.c
+++ b/
fs/ceph/file.c
@@
-887,7
+887,9
@@
ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter,
break;
}
- if (!write)
+ if (write)
+ size = min_t(u64, size, fsc->mount_options->wsize);
+ else
size = min_t(u64, size, fsc->mount_options->rsize);
len = size;