aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-03-10 11:18:15 -0400
committerIlya Dryomov <idryomov@gmail.com>2015-04-20 10:30:23 -0400
commit57e95460f0b360c4d29c0320922b46b55dd2b79f (patch)
tree7baff708f8c42e18ef62075baa00514008e50a37 /fs/ceph
parent3563dbdd99603d4339467ddffafe3851aae2e398 (diff)
ceph: match wait_for_completion_timeout return type
return type of wait_for_completion_timeout is unsigned long not int. An appropriately named unsigned long is added and the assignment fixed up. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/dir.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 92a6b6018511..d486f2a5a88d 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -1242,11 +1242,12 @@ static int ceph_dir_fsync(struct file *file, loff_t start, loff_t end,
1242 dout("dir_fsync %p wait on tid %llu (until %llu)\n", 1242 dout("dir_fsync %p wait on tid %llu (until %llu)\n",
1243 inode, req->r_tid, last_tid); 1243 inode, req->r_tid, last_tid);
1244 if (req->r_timeout) { 1244 if (req->r_timeout) {
1245 ret = wait_for_completion_timeout( 1245 unsigned long time_left = wait_for_completion_timeout(
1246 &req->r_safe_completion, req->r_timeout); 1246 &req->r_safe_completion,
1247 if (ret > 0) 1247 req->r_timeout);
1248 if (time_left > 0)
1248 ret = 0; 1249 ret = 0;
1249 else if (ret == 0) 1250 else
1250 ret = -EIO; /* timed out */ 1251 ret = -EIO; /* timed out */
1251 } else { 1252 } else {
1252 wait_for_completion(&req->r_safe_completion); 1253 wait_for_completion(&req->r_safe_completion);