diff options
-rw-r--r-- | fs/ceph/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index b654f403139e..9542f07d0b93 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -318,10 +318,10 @@ more: | |||
318 | ci->i_truncate_seq, | 318 | ci->i_truncate_seq, |
319 | ci->i_truncate_size, | 319 | ci->i_truncate_size, |
320 | page_pos, pages_left, page_align); | 320 | page_pos, pages_left, page_align); |
321 | hit_stripe = this_len < left; | ||
322 | was_short = ret >= 0 && ret < this_len; | ||
323 | if (ret == -ENOENT) | 321 | if (ret == -ENOENT) |
324 | ret = 0; | 322 | ret = 0; |
323 | hit_stripe = this_len < left; | ||
324 | was_short = ret >= 0 && ret < this_len; | ||
325 | dout("striped_read %llu~%u (read %u) got %d%s%s\n", pos, left, read, | 325 | dout("striped_read %llu~%u (read %u) got %d%s%s\n", pos, left, read, |
326 | ret, hit_stripe ? " HITSTRIPE" : "", was_short ? " SHORT" : ""); | 326 | ret, hit_stripe ? " HITSTRIPE" : "", was_short ? " SHORT" : ""); |
327 | 327 | ||