diff options
| -rw-r--r-- | fs/ceph/addr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 9cd0c0ea7cdb..e4b066cd912a 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
| @@ -502,9 +502,9 @@ static struct ceph_snap_context *get_oldest_context(struct inode *inode, | |||
| 502 | dout(" head snapc %p has %d dirty pages\n", | 502 | dout(" head snapc %p has %d dirty pages\n", |
| 503 | snapc, ci->i_wrbuffer_ref_head); | 503 | snapc, ci->i_wrbuffer_ref_head); |
| 504 | if (truncate_size) | 504 | if (truncate_size) |
| 505 | *truncate_size = capsnap->truncate_size; | 505 | *truncate_size = ci->i_truncate_size; |
| 506 | if (truncate_seq) | 506 | if (truncate_seq) |
| 507 | *truncate_seq = capsnap->truncate_seq; | 507 | *truncate_seq = ci->i_truncate_seq; |
| 508 | } | 508 | } |
| 509 | spin_unlock(&ci->i_ceph_lock); | 509 | spin_unlock(&ci->i_ceph_lock); |
| 510 | return snapc; | 510 | return snapc; |
