diff options
author | Sage Weil <sage@newdream.net> | 2010-02-09 18:24:44 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-11 14:48:54 -0500 |
commit | 3c6f6b79a64db7f1c7abf09d693db3b0066784fb (patch) | |
tree | e17b4cd848212b0556180331280044dd1526b742 /fs/ceph/addr.c | |
parent | 6a026589ba333185c466c906376fe022a27a53f9 (diff) |
ceph: cleanup async writeback, truncation, invalidate helpers
Grab inode ref in helper. Make work functions static, with consistent
naming.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r-- | fs/ceph/addr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 89c5ff3b59d5..71f5ad1c1e26 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -947,8 +947,7 @@ retry_locked: | |||
947 | */ | 947 | */ |
948 | snapc = ceph_get_snap_context((void *)page->private); | 948 | snapc = ceph_get_snap_context((void *)page->private); |
949 | unlock_page(page); | 949 | unlock_page(page); |
950 | if (ceph_queue_writeback(inode)) | 950 | ceph_queue_writeback(inode); |
951 | igrab(inode); | ||
952 | wait_event_interruptible(ci->i_cap_wq, | 951 | wait_event_interruptible(ci->i_cap_wq, |
953 | context_is_writeable_or_written(inode, snapc)); | 952 | context_is_writeable_or_written(inode, snapc)); |
954 | ceph_put_snap_context(snapc); | 953 | ceph_put_snap_context(snapc); |