diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-05-22 00:03:32 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-07-07 11:25:12 -0400 |
commit | efb0ca765ac6f4985b57ef215e8d55e746b083f4 (patch) | |
tree | 8333c6ae9ed47a7134c0163d07670970d1eff4b4 /fs/ceph/file.c | |
parent | 84eea8c79090c44564877cd47c73455e32ec4846 (diff) |
ceph: update the 'approaching max_size' code
The old 'approaching max_size' code expects MDS set max_size to
'2 * reported_size'. This is no longer true. The new code reports
file size when half of previous max_size increment has been used.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 29308a80d66f..3d48c415f3cb 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -1040,8 +1040,8 @@ ceph_sync_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos, | |||
1040 | int num_pages; | 1040 | int num_pages; |
1041 | int written = 0; | 1041 | int written = 0; |
1042 | int flags; | 1042 | int flags; |
1043 | int check_caps = 0; | ||
1044 | int ret; | 1043 | int ret; |
1044 | bool check_caps = false; | ||
1045 | struct timespec mtime = current_time(inode); | 1045 | struct timespec mtime = current_time(inode); |
1046 | size_t count = iov_iter_count(from); | 1046 | size_t count = iov_iter_count(from); |
1047 | 1047 | ||