diff options
Diffstat (limited to 'fs/ceph/addr.c')
-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 561438b6a50c..e159c529fd2b 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -24,7 +24,7 @@ | |||
24 | * context needs to be associated with the osd write during writeback. | 24 | * context needs to be associated with the osd write during writeback. |
25 | * | 25 | * |
26 | * Similarly, struct ceph_inode_info maintains a set of counters to | 26 | * Similarly, struct ceph_inode_info maintains a set of counters to |
27 | * count dirty pages on the inode. In the absense of snapshots, | 27 | * count dirty pages on the inode. In the absence of snapshots, |
28 | * i_wrbuffer_ref == i_wrbuffer_ref_head == the dirty page count. | 28 | * i_wrbuffer_ref == i_wrbuffer_ref_head == the dirty page count. |
29 | * | 29 | * |
30 | * When a snapshot is taken (that is, when the client receives | 30 | * When a snapshot is taken (that is, when the client receives |
@@ -92,7 +92,7 @@ static int ceph_set_page_dirty(struct page *page) | |||
92 | ci->i_head_snapc = ceph_get_snap_context(snapc); | 92 | ci->i_head_snapc = ceph_get_snap_context(snapc); |
93 | ++ci->i_wrbuffer_ref_head; | 93 | ++ci->i_wrbuffer_ref_head; |
94 | if (ci->i_wrbuffer_ref == 0) | 94 | if (ci->i_wrbuffer_ref == 0) |
95 | igrab(inode); | 95 | ihold(inode); |
96 | ++ci->i_wrbuffer_ref; | 96 | ++ci->i_wrbuffer_ref; |
97 | dout("%p set_page_dirty %p idx %lu head %d/%d -> %d/%d " | 97 | dout("%p set_page_dirty %p idx %lu head %d/%d -> %d/%d " |
98 | "snapc %p seq %lld (%d snaps)\n", | 98 | "snapc %p seq %lld (%d snaps)\n", |