diff options
author | Tejun Heo <tj@kernel.org> | 2008-11-26 06:03:55 -0500 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-11-26 06:03:55 -0500 |
commit | b93f858ab2a4bee779c360002f313ad6c3504cdc (patch) | |
tree | 0523108e8c76035f35a3712ced5bf8e329731c78 /fs/fuse | |
parent | 95668a69a4bb862063c4d28a746e55107dee7b98 (diff) |
fuse: add fuse_ prefix to several functions
Add fuse_ prefix to request_send*() and get_root_inode() as some of
those functions will be exported for CUSE. With or without CUSE
export, having the function names scoped is a good idea for
debuggability.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dev.c | 23 | ||||
-rw-r--r-- | fs/fuse/dir.c | 34 | ||||
-rw-r--r-- | fs/fuse/file.c | 28 | ||||
-rw-r--r-- | fs/fuse/fuse_i.h | 9 | ||||
-rw-r--r-- | fs/fuse/inode.c | 12 |
5 files changed, 54 insertions, 52 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 6176e444c76e..3c44ce359a00 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -379,7 +379,7 @@ static void request_wait_answer(struct fuse_conn *fc, struct fuse_req *req) | |||
379 | } | 379 | } |
380 | } | 380 | } |
381 | 381 | ||
382 | void request_send(struct fuse_conn *fc, struct fuse_req *req) | 382 | void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req) |
383 | { | 383 | { |
384 | req->isreply = 1; | 384 | req->isreply = 1; |
385 | spin_lock(&fc->lock); | 385 | spin_lock(&fc->lock); |
@@ -398,8 +398,8 @@ void request_send(struct fuse_conn *fc, struct fuse_req *req) | |||
398 | spin_unlock(&fc->lock); | 398 | spin_unlock(&fc->lock); |
399 | } | 399 | } |
400 | 400 | ||
401 | static void request_send_nowait_locked(struct fuse_conn *fc, | 401 | static void fuse_request_send_nowait_locked(struct fuse_conn *fc, |
402 | struct fuse_req *req) | 402 | struct fuse_req *req) |
403 | { | 403 | { |
404 | req->background = 1; | 404 | req->background = 1; |
405 | fc->num_background++; | 405 | fc->num_background++; |
@@ -413,11 +413,11 @@ static void request_send_nowait_locked(struct fuse_conn *fc, | |||
413 | flush_bg_queue(fc); | 413 | flush_bg_queue(fc); |
414 | } | 414 | } |
415 | 415 | ||
416 | static void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req) | 416 | static void fuse_request_send_nowait(struct fuse_conn *fc, struct fuse_req *req) |
417 | { | 417 | { |
418 | spin_lock(&fc->lock); | 418 | spin_lock(&fc->lock); |
419 | if (fc->connected) { | 419 | if (fc->connected) { |
420 | request_send_nowait_locked(fc, req); | 420 | fuse_request_send_nowait_locked(fc, req); |
421 | spin_unlock(&fc->lock); | 421 | spin_unlock(&fc->lock); |
422 | } else { | 422 | } else { |
423 | req->out.h.error = -ENOTCONN; | 423 | req->out.h.error = -ENOTCONN; |
@@ -425,16 +425,16 @@ static void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req) | |||
425 | } | 425 | } |
426 | } | 426 | } |
427 | 427 | ||
428 | void request_send_noreply(struct fuse_conn *fc, struct fuse_req *req) | 428 | void fuse_request_send_noreply(struct fuse_conn *fc, struct fuse_req *req) |
429 | { | 429 | { |
430 | req->isreply = 0; | 430 | req->isreply = 0; |
431 | request_send_nowait(fc, req); | 431 | fuse_request_send_nowait(fc, req); |
432 | } | 432 | } |
433 | 433 | ||
434 | void request_send_background(struct fuse_conn *fc, struct fuse_req *req) | 434 | void fuse_request_send_background(struct fuse_conn *fc, struct fuse_req *req) |
435 | { | 435 | { |
436 | req->isreply = 1; | 436 | req->isreply = 1; |
437 | request_send_nowait(fc, req); | 437 | fuse_request_send_nowait(fc, req); |
438 | } | 438 | } |
439 | 439 | ||
440 | /* | 440 | /* |
@@ -442,10 +442,11 @@ void request_send_background(struct fuse_conn *fc, struct fuse_req *req) | |||
442 | * | 442 | * |
443 | * fc->connected must have been checked previously | 443 | * fc->connected must have been checked previously |
444 | */ | 444 | */ |
445 | void request_send_background_locked(struct fuse_conn *fc, struct fuse_req *req) | 445 | void fuse_request_send_background_locked(struct fuse_conn *fc, |
446 | struct fuse_req *req) | ||
446 | { | 447 | { |
447 | req->isreply = 1; | 448 | req->isreply = 1; |
448 | request_send_nowait_locked(fc, req); | 449 | fuse_request_send_nowait_locked(fc, req); |
449 | } | 450 | } |
450 | 451 | ||
451 | /* | 452 | /* |
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 16ae55d347bb..f310768a02fe 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -189,7 +189,7 @@ static int fuse_dentry_revalidate(struct dentry *entry, struct nameidata *nd) | |||
189 | parent = dget_parent(entry); | 189 | parent = dget_parent(entry); |
190 | fuse_lookup_init(fc, req, get_node_id(parent->d_inode), | 190 | fuse_lookup_init(fc, req, get_node_id(parent->d_inode), |
191 | &entry->d_name, &outarg); | 191 | &entry->d_name, &outarg); |
192 | request_send(fc, req); | 192 | fuse_request_send(fc, req); |
193 | dput(parent); | 193 | dput(parent); |
194 | err = req->out.h.error; | 194 | err = req->out.h.error; |
195 | fuse_put_request(fc, req); | 195 | fuse_put_request(fc, req); |
@@ -283,7 +283,7 @@ int fuse_lookup_name(struct super_block *sb, u64 nodeid, struct qstr *name, | |||
283 | attr_version = fuse_get_attr_version(fc); | 283 | attr_version = fuse_get_attr_version(fc); |
284 | 284 | ||
285 | fuse_lookup_init(fc, req, nodeid, name, outarg); | 285 | fuse_lookup_init(fc, req, nodeid, name, outarg); |
286 | request_send(fc, req); | 286 | fuse_request_send(fc, req); |
287 | err = req->out.h.error; | 287 | err = req->out.h.error; |
288 | fuse_put_request(fc, req); | 288 | fuse_put_request(fc, req); |
289 | /* Zero nodeid is same as -ENOENT, but with valid timeout */ | 289 | /* Zero nodeid is same as -ENOENT, but with valid timeout */ |
@@ -369,7 +369,7 @@ static void fuse_sync_release(struct fuse_conn *fc, struct fuse_file *ff, | |||
369 | { | 369 | { |
370 | fuse_release_fill(ff, nodeid, flags, FUSE_RELEASE); | 370 | fuse_release_fill(ff, nodeid, flags, FUSE_RELEASE); |
371 | ff->reserved_req->force = 1; | 371 | ff->reserved_req->force = 1; |
372 | request_send(fc, ff->reserved_req); | 372 | fuse_request_send(fc, ff->reserved_req); |
373 | fuse_put_request(fc, ff->reserved_req); | 373 | fuse_put_request(fc, ff->reserved_req); |
374 | kfree(ff); | 374 | kfree(ff); |
375 | } | 375 | } |
@@ -432,7 +432,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode, | |||
432 | req->out.args[0].value = &outentry; | 432 | req->out.args[0].value = &outentry; |
433 | req->out.args[1].size = sizeof(outopen); | 433 | req->out.args[1].size = sizeof(outopen); |
434 | req->out.args[1].value = &outopen; | 434 | req->out.args[1].value = &outopen; |
435 | request_send(fc, req); | 435 | fuse_request_send(fc, req); |
436 | err = req->out.h.error; | 436 | err = req->out.h.error; |
437 | if (err) { | 437 | if (err) { |
438 | if (err == -ENOSYS) | 438 | if (err == -ENOSYS) |
@@ -502,7 +502,7 @@ static int create_new_entry(struct fuse_conn *fc, struct fuse_req *req, | |||
502 | else | 502 | else |
503 | req->out.args[0].size = sizeof(outarg); | 503 | req->out.args[0].size = sizeof(outarg); |
504 | req->out.args[0].value = &outarg; | 504 | req->out.args[0].value = &outarg; |
505 | request_send(fc, req); | 505 | fuse_request_send(fc, req); |
506 | err = req->out.h.error; | 506 | err = req->out.h.error; |
507 | fuse_put_request(fc, req); | 507 | fuse_put_request(fc, req); |
508 | if (err) | 508 | if (err) |
@@ -631,7 +631,7 @@ static int fuse_unlink(struct inode *dir, struct dentry *entry) | |||
631 | req->in.numargs = 1; | 631 | req->in.numargs = 1; |
632 | req->in.args[0].size = entry->d_name.len + 1; | 632 | req->in.args[0].size = entry->d_name.len + 1; |
633 | req->in.args[0].value = entry->d_name.name; | 633 | req->in.args[0].value = entry->d_name.name; |
634 | request_send(fc, req); | 634 | fuse_request_send(fc, req); |
635 | err = req->out.h.error; | 635 | err = req->out.h.error; |
636 | fuse_put_request(fc, req); | 636 | fuse_put_request(fc, req); |
637 | if (!err) { | 637 | if (!err) { |
@@ -664,7 +664,7 @@ static int fuse_rmdir(struct inode *dir, struct dentry *entry) | |||
664 | req->in.numargs = 1; | 664 | req->in.numargs = 1; |
665 | req->in.args[0].size = entry->d_name.len + 1; | 665 | req->in.args[0].size = entry->d_name.len + 1; |
666 | req->in.args[0].value = entry->d_name.name; | 666 | req->in.args[0].value = entry->d_name.name; |
667 | request_send(fc, req); | 667 | fuse_request_send(fc, req); |
668 | err = req->out.h.error; | 668 | err = req->out.h.error; |
669 | fuse_put_request(fc, req); | 669 | fuse_put_request(fc, req); |
670 | if (!err) { | 670 | if (!err) { |
@@ -697,7 +697,7 @@ static int fuse_rename(struct inode *olddir, struct dentry *oldent, | |||
697 | req->in.args[1].value = oldent->d_name.name; | 697 | req->in.args[1].value = oldent->d_name.name; |
698 | req->in.args[2].size = newent->d_name.len + 1; | 698 | req->in.args[2].size = newent->d_name.len + 1; |
699 | req->in.args[2].value = newent->d_name.name; | 699 | req->in.args[2].value = newent->d_name.name; |
700 | request_send(fc, req); | 700 | fuse_request_send(fc, req); |
701 | err = req->out.h.error; | 701 | err = req->out.h.error; |
702 | fuse_put_request(fc, req); | 702 | fuse_put_request(fc, req); |
703 | if (!err) { | 703 | if (!err) { |
@@ -813,7 +813,7 @@ static int fuse_do_getattr(struct inode *inode, struct kstat *stat, | |||
813 | else | 813 | else |
814 | req->out.args[0].size = sizeof(outarg); | 814 | req->out.args[0].size = sizeof(outarg); |
815 | req->out.args[0].value = &outarg; | 815 | req->out.args[0].value = &outarg; |
816 | request_send(fc, req); | 816 | fuse_request_send(fc, req); |
817 | err = req->out.h.error; | 817 | err = req->out.h.error; |
818 | fuse_put_request(fc, req); | 818 | fuse_put_request(fc, req); |
819 | if (!err) { | 819 | if (!err) { |
@@ -906,7 +906,7 @@ static int fuse_access(struct inode *inode, int mask) | |||
906 | req->in.numargs = 1; | 906 | req->in.numargs = 1; |
907 | req->in.args[0].size = sizeof(inarg); | 907 | req->in.args[0].size = sizeof(inarg); |
908 | req->in.args[0].value = &inarg; | 908 | req->in.args[0].value = &inarg; |
909 | request_send(fc, req); | 909 | fuse_request_send(fc, req); |
910 | err = req->out.h.error; | 910 | err = req->out.h.error; |
911 | fuse_put_request(fc, req); | 911 | fuse_put_request(fc, req); |
912 | if (err == -ENOSYS) { | 912 | if (err == -ENOSYS) { |
@@ -1028,7 +1028,7 @@ static int fuse_readdir(struct file *file, void *dstbuf, filldir_t filldir) | |||
1028 | req->num_pages = 1; | 1028 | req->num_pages = 1; |
1029 | req->pages[0] = page; | 1029 | req->pages[0] = page; |
1030 | fuse_read_fill(req, file, inode, file->f_pos, PAGE_SIZE, FUSE_READDIR); | 1030 | fuse_read_fill(req, file, inode, file->f_pos, PAGE_SIZE, FUSE_READDIR); |
1031 | request_send(fc, req); | 1031 | fuse_request_send(fc, req); |
1032 | nbytes = req->out.args[0].size; | 1032 | nbytes = req->out.args[0].size; |
1033 | err = req->out.h.error; | 1033 | err = req->out.h.error; |
1034 | fuse_put_request(fc, req); | 1034 | fuse_put_request(fc, req); |
@@ -1062,7 +1062,7 @@ static char *read_link(struct dentry *dentry) | |||
1062 | req->out.numargs = 1; | 1062 | req->out.numargs = 1; |
1063 | req->out.args[0].size = PAGE_SIZE - 1; | 1063 | req->out.args[0].size = PAGE_SIZE - 1; |
1064 | req->out.args[0].value = link; | 1064 | req->out.args[0].value = link; |
1065 | request_send(fc, req); | 1065 | fuse_request_send(fc, req); |
1066 | if (req->out.h.error) { | 1066 | if (req->out.h.error) { |
1067 | free_page((unsigned long) link); | 1067 | free_page((unsigned long) link); |
1068 | link = ERR_PTR(req->out.h.error); | 1068 | link = ERR_PTR(req->out.h.error); |
@@ -1268,7 +1268,7 @@ static int fuse_do_setattr(struct dentry *entry, struct iattr *attr, | |||
1268 | else | 1268 | else |
1269 | req->out.args[0].size = sizeof(outarg); | 1269 | req->out.args[0].size = sizeof(outarg); |
1270 | req->out.args[0].value = &outarg; | 1270 | req->out.args[0].value = &outarg; |
1271 | request_send(fc, req); | 1271 | fuse_request_send(fc, req); |
1272 | err = req->out.h.error; | 1272 | err = req->out.h.error; |
1273 | fuse_put_request(fc, req); | 1273 | fuse_put_request(fc, req); |
1274 | if (err) { | 1274 | if (err) { |
@@ -1362,7 +1362,7 @@ static int fuse_setxattr(struct dentry *entry, const char *name, | |||
1362 | req->in.args[1].value = name; | 1362 | req->in.args[1].value = name; |
1363 | req->in.args[2].size = size; | 1363 | req->in.args[2].size = size; |
1364 | req->in.args[2].value = value; | 1364 | req->in.args[2].value = value; |
1365 | request_send(fc, req); | 1365 | fuse_request_send(fc, req); |
1366 | err = req->out.h.error; | 1366 | err = req->out.h.error; |
1367 | fuse_put_request(fc, req); | 1367 | fuse_put_request(fc, req); |
1368 | if (err == -ENOSYS) { | 1368 | if (err == -ENOSYS) { |
@@ -1408,7 +1408,7 @@ static ssize_t fuse_getxattr(struct dentry *entry, const char *name, | |||
1408 | req->out.args[0].size = sizeof(outarg); | 1408 | req->out.args[0].size = sizeof(outarg); |
1409 | req->out.args[0].value = &outarg; | 1409 | req->out.args[0].value = &outarg; |
1410 | } | 1410 | } |
1411 | request_send(fc, req); | 1411 | fuse_request_send(fc, req); |
1412 | ret = req->out.h.error; | 1412 | ret = req->out.h.error; |
1413 | if (!ret) | 1413 | if (!ret) |
1414 | ret = size ? req->out.args[0].size : outarg.size; | 1414 | ret = size ? req->out.args[0].size : outarg.size; |
@@ -1458,7 +1458,7 @@ static ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size) | |||
1458 | req->out.args[0].size = sizeof(outarg); | 1458 | req->out.args[0].size = sizeof(outarg); |
1459 | req->out.args[0].value = &outarg; | 1459 | req->out.args[0].value = &outarg; |
1460 | } | 1460 | } |
1461 | request_send(fc, req); | 1461 | fuse_request_send(fc, req); |
1462 | ret = req->out.h.error; | 1462 | ret = req->out.h.error; |
1463 | if (!ret) | 1463 | if (!ret) |
1464 | ret = size ? req->out.args[0].size : outarg.size; | 1464 | ret = size ? req->out.args[0].size : outarg.size; |
@@ -1491,7 +1491,7 @@ static int fuse_removexattr(struct dentry *entry, const char *name) | |||
1491 | req->in.numargs = 1; | 1491 | req->in.numargs = 1; |
1492 | req->in.args[0].size = strlen(name) + 1; | 1492 | req->in.args[0].size = strlen(name) + 1; |
1493 | req->in.args[0].value = name; | 1493 | req->in.args[0].value = name; |
1494 | request_send(fc, req); | 1494 | fuse_request_send(fc, req); |
1495 | err = req->out.h.error; | 1495 | err = req->out.h.error; |
1496 | fuse_put_request(fc, req); | 1496 | fuse_put_request(fc, req); |
1497 | if (err == -ENOSYS) { | 1497 | if (err == -ENOSYS) { |
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index b3a944e4bb9c..80b5fa80f5ec 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -39,7 +39,7 @@ static int fuse_send_open(struct inode *inode, struct file *file, int isdir, | |||
39 | req->out.numargs = 1; | 39 | req->out.numargs = 1; |
40 | req->out.args[0].size = sizeof(*outargp); | 40 | req->out.args[0].size = sizeof(*outargp); |
41 | req->out.args[0].value = outargp; | 41 | req->out.args[0].value = outargp; |
42 | request_send(fc, req); | 42 | fuse_request_send(fc, req); |
43 | err = req->out.h.error; | 43 | err = req->out.h.error; |
44 | fuse_put_request(fc, req); | 44 | fuse_put_request(fc, req); |
45 | 45 | ||
@@ -93,7 +93,7 @@ static void fuse_file_put(struct fuse_file *ff) | |||
93 | struct inode *inode = req->misc.release.dentry->d_inode; | 93 | struct inode *inode = req->misc.release.dentry->d_inode; |
94 | struct fuse_conn *fc = get_fuse_conn(inode); | 94 | struct fuse_conn *fc = get_fuse_conn(inode); |
95 | req->end = fuse_release_end; | 95 | req->end = fuse_release_end; |
96 | request_send_background(fc, req); | 96 | fuse_request_send_background(fc, req); |
97 | kfree(ff); | 97 | kfree(ff); |
98 | } | 98 | } |
99 | } | 99 | } |
@@ -289,7 +289,7 @@ static int fuse_flush(struct file *file, fl_owner_t id) | |||
289 | req->in.args[0].size = sizeof(inarg); | 289 | req->in.args[0].size = sizeof(inarg); |
290 | req->in.args[0].value = &inarg; | 290 | req->in.args[0].value = &inarg; |
291 | req->force = 1; | 291 | req->force = 1; |
292 | request_send(fc, req); | 292 | fuse_request_send(fc, req); |
293 | err = req->out.h.error; | 293 | err = req->out.h.error; |
294 | fuse_put_request(fc, req); | 294 | fuse_put_request(fc, req); |
295 | if (err == -ENOSYS) { | 295 | if (err == -ENOSYS) { |
@@ -353,7 +353,7 @@ int fuse_fsync_common(struct file *file, struct dentry *de, int datasync, | |||
353 | req->in.numargs = 1; | 353 | req->in.numargs = 1; |
354 | req->in.args[0].size = sizeof(inarg); | 354 | req->in.args[0].size = sizeof(inarg); |
355 | req->in.args[0].value = &inarg; | 355 | req->in.args[0].value = &inarg; |
356 | request_send(fc, req); | 356 | fuse_request_send(fc, req); |
357 | err = req->out.h.error; | 357 | err = req->out.h.error; |
358 | fuse_put_request(fc, req); | 358 | fuse_put_request(fc, req); |
359 | if (err == -ENOSYS) { | 359 | if (err == -ENOSYS) { |
@@ -405,7 +405,7 @@ static size_t fuse_send_read(struct fuse_req *req, struct file *file, | |||
405 | inarg->read_flags |= FUSE_READ_LOCKOWNER; | 405 | inarg->read_flags |= FUSE_READ_LOCKOWNER; |
406 | inarg->lock_owner = fuse_lock_owner_id(fc, owner); | 406 | inarg->lock_owner = fuse_lock_owner_id(fc, owner); |
407 | } | 407 | } |
408 | request_send(fc, req); | 408 | fuse_request_send(fc, req); |
409 | return req->out.args[0].size; | 409 | return req->out.args[0].size; |
410 | } | 410 | } |
411 | 411 | ||
@@ -517,9 +517,9 @@ static void fuse_send_readpages(struct fuse_req *req, struct file *file, | |||
517 | struct fuse_file *ff = file->private_data; | 517 | struct fuse_file *ff = file->private_data; |
518 | req->ff = fuse_file_get(ff); | 518 | req->ff = fuse_file_get(ff); |
519 | req->end = fuse_readpages_end; | 519 | req->end = fuse_readpages_end; |
520 | request_send_background(fc, req); | 520 | fuse_request_send_background(fc, req); |
521 | } else { | 521 | } else { |
522 | request_send(fc, req); | 522 | fuse_request_send(fc, req); |
523 | fuse_readpages_end(fc, req); | 523 | fuse_readpages_end(fc, req); |
524 | fuse_put_request(fc, req); | 524 | fuse_put_request(fc, req); |
525 | } | 525 | } |
@@ -645,7 +645,7 @@ static size_t fuse_send_write(struct fuse_req *req, struct file *file, | |||
645 | inarg->write_flags |= FUSE_WRITE_LOCKOWNER; | 645 | inarg->write_flags |= FUSE_WRITE_LOCKOWNER; |
646 | inarg->lock_owner = fuse_lock_owner_id(fc, owner); | 646 | inarg->lock_owner = fuse_lock_owner_id(fc, owner); |
647 | } | 647 | } |
648 | request_send(fc, req); | 648 | fuse_request_send(fc, req); |
649 | return req->misc.write.out.size; | 649 | return req->misc.write.out.size; |
650 | } | 650 | } |
651 | 651 | ||
@@ -1087,7 +1087,7 @@ static void fuse_send_writepage(struct fuse_conn *fc, struct fuse_req *req) | |||
1087 | 1087 | ||
1088 | req->in.args[1].size = inarg->size; | 1088 | req->in.args[1].size = inarg->size; |
1089 | fi->writectr++; | 1089 | fi->writectr++; |
1090 | request_send_background_locked(fc, req); | 1090 | fuse_request_send_background_locked(fc, req); |
1091 | return; | 1091 | return; |
1092 | 1092 | ||
1093 | out_free: | 1093 | out_free: |
@@ -1334,7 +1334,7 @@ static int fuse_getlk(struct file *file, struct file_lock *fl) | |||
1334 | req->out.numargs = 1; | 1334 | req->out.numargs = 1; |
1335 | req->out.args[0].size = sizeof(outarg); | 1335 | req->out.args[0].size = sizeof(outarg); |
1336 | req->out.args[0].value = &outarg; | 1336 | req->out.args[0].value = &outarg; |
1337 | request_send(fc, req); | 1337 | fuse_request_send(fc, req); |
1338 | err = req->out.h.error; | 1338 | err = req->out.h.error; |
1339 | fuse_put_request(fc, req); | 1339 | fuse_put_request(fc, req); |
1340 | if (!err) | 1340 | if (!err) |
@@ -1366,7 +1366,7 @@ static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) | |||
1366 | return PTR_ERR(req); | 1366 | return PTR_ERR(req); |
1367 | 1367 | ||
1368 | fuse_lk_fill(req, file, fl, opcode, pid, flock); | 1368 | fuse_lk_fill(req, file, fl, opcode, pid, flock); |
1369 | request_send(fc, req); | 1369 | fuse_request_send(fc, req); |
1370 | err = req->out.h.error; | 1370 | err = req->out.h.error; |
1371 | /* locking is restartable */ | 1371 | /* locking is restartable */ |
1372 | if (err == -EINTR) | 1372 | if (err == -EINTR) |
@@ -1442,7 +1442,7 @@ static sector_t fuse_bmap(struct address_space *mapping, sector_t block) | |||
1442 | req->out.numargs = 1; | 1442 | req->out.numargs = 1; |
1443 | req->out.args[0].size = sizeof(outarg); | 1443 | req->out.args[0].size = sizeof(outarg); |
1444 | req->out.args[0].value = &outarg; | 1444 | req->out.args[0].value = &outarg; |
1445 | request_send(fc, req); | 1445 | fuse_request_send(fc, req); |
1446 | err = req->out.h.error; | 1446 | err = req->out.h.error; |
1447 | fuse_put_request(fc, req); | 1447 | fuse_put_request(fc, req); |
1448 | if (err == -ENOSYS) | 1448 | if (err == -ENOSYS) |
@@ -1681,7 +1681,7 @@ static long fuse_file_do_ioctl(struct file *file, unsigned int cmd, | |||
1681 | req->out.argpages = 1; | 1681 | req->out.argpages = 1; |
1682 | req->out.argvar = 1; | 1682 | req->out.argvar = 1; |
1683 | 1683 | ||
1684 | request_send(fc, req); | 1684 | fuse_request_send(fc, req); |
1685 | err = req->out.h.error; | 1685 | err = req->out.h.error; |
1686 | transferred = req->out.args[1].size; | 1686 | transferred = req->out.args[1].size; |
1687 | fuse_put_request(fc, req); | 1687 | fuse_put_request(fc, req); |
@@ -1842,7 +1842,7 @@ static unsigned fuse_file_poll(struct file *file, poll_table *wait) | |||
1842 | req->out.numargs = 1; | 1842 | req->out.numargs = 1; |
1843 | req->out.args[0].size = sizeof(outarg); | 1843 | req->out.args[0].size = sizeof(outarg); |
1844 | req->out.args[0].value = &outarg; | 1844 | req->out.args[0].value = &outarg; |
1845 | request_send(fc, req); | 1845 | fuse_request_send(fc, req); |
1846 | err = req->out.h.error; | 1846 | err = req->out.h.error; |
1847 | fuse_put_request(fc, req); | 1847 | fuse_put_request(fc, req); |
1848 | 1848 | ||
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 986fbd4c1ff5..c08e7e890923 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -619,19 +619,20 @@ void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req); | |||
619 | /** | 619 | /** |
620 | * Send a request (synchronous) | 620 | * Send a request (synchronous) |
621 | */ | 621 | */ |
622 | void request_send(struct fuse_conn *fc, struct fuse_req *req); | 622 | void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req); |
623 | 623 | ||
624 | /** | 624 | /** |
625 | * Send a request with no reply | 625 | * Send a request with no reply |
626 | */ | 626 | */ |
627 | void request_send_noreply(struct fuse_conn *fc, struct fuse_req *req); | 627 | void fuse_request_send_noreply(struct fuse_conn *fc, struct fuse_req *req); |
628 | 628 | ||
629 | /** | 629 | /** |
630 | * Send a request in the background | 630 | * Send a request in the background |
631 | */ | 631 | */ |
632 | void request_send_background(struct fuse_conn *fc, struct fuse_req *req); | 632 | void fuse_request_send_background(struct fuse_conn *fc, struct fuse_req *req); |
633 | 633 | ||
634 | void request_send_background_locked(struct fuse_conn *fc, struct fuse_req *req); | 634 | void fuse_request_send_background_locked(struct fuse_conn *fc, |
635 | struct fuse_req *req); | ||
635 | 636 | ||
636 | /* Abort all requests */ | 637 | /* Abort all requests */ |
637 | void fuse_abort_conn(struct fuse_conn *fc); | 638 | void fuse_abort_conn(struct fuse_conn *fc); |
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index ba7256128084..ee91639c6d35 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -94,7 +94,7 @@ void fuse_send_forget(struct fuse_conn *fc, struct fuse_req *req, | |||
94 | req->in.numargs = 1; | 94 | req->in.numargs = 1; |
95 | req->in.args[0].size = sizeof(struct fuse_forget_in); | 95 | req->in.args[0].size = sizeof(struct fuse_forget_in); |
96 | req->in.args[0].value = inarg; | 96 | req->in.args[0].value = inarg; |
97 | request_send_noreply(fc, req); | 97 | fuse_request_send_noreply(fc, req); |
98 | } | 98 | } |
99 | 99 | ||
100 | static void fuse_clear_inode(struct inode *inode) | 100 | static void fuse_clear_inode(struct inode *inode) |
@@ -269,7 +269,7 @@ static void fuse_send_destroy(struct fuse_conn *fc) | |||
269 | fc->destroy_req = NULL; | 269 | fc->destroy_req = NULL; |
270 | req->in.h.opcode = FUSE_DESTROY; | 270 | req->in.h.opcode = FUSE_DESTROY; |
271 | req->force = 1; | 271 | req->force = 1; |
272 | request_send(fc, req); | 272 | fuse_request_send(fc, req); |
273 | fuse_put_request(fc, req); | 273 | fuse_put_request(fc, req); |
274 | } | 274 | } |
275 | } | 275 | } |
@@ -334,7 +334,7 @@ static int fuse_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
334 | req->out.args[0].size = | 334 | req->out.args[0].size = |
335 | fc->minor < 4 ? FUSE_COMPAT_STATFS_SIZE : sizeof(outarg); | 335 | fc->minor < 4 ? FUSE_COMPAT_STATFS_SIZE : sizeof(outarg); |
336 | req->out.args[0].value = &outarg; | 336 | req->out.args[0].value = &outarg; |
337 | request_send(fc, req); | 337 | fuse_request_send(fc, req); |
338 | err = req->out.h.error; | 338 | err = req->out.h.error; |
339 | if (!err) | 339 | if (!err) |
340 | convert_fuse_statfs(buf, &outarg.st); | 340 | convert_fuse_statfs(buf, &outarg.st); |
@@ -544,7 +544,7 @@ struct fuse_conn *fuse_conn_get(struct fuse_conn *fc) | |||
544 | return fc; | 544 | return fc; |
545 | } | 545 | } |
546 | 546 | ||
547 | static struct inode *get_root_inode(struct super_block *sb, unsigned mode) | 547 | static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned mode) |
548 | { | 548 | { |
549 | struct fuse_attr attr; | 549 | struct fuse_attr attr; |
550 | memset(&attr, 0, sizeof(attr)); | 550 | memset(&attr, 0, sizeof(attr)); |
@@ -787,7 +787,7 @@ static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) | |||
787 | req->out.args[0].size = sizeof(struct fuse_init_out); | 787 | req->out.args[0].size = sizeof(struct fuse_init_out); |
788 | req->out.args[0].value = &req->misc.init_out; | 788 | req->out.args[0].value = &req->misc.init_out; |
789 | req->end = process_init_reply; | 789 | req->end = process_init_reply; |
790 | request_send_background(fc, req); | 790 | fuse_request_send_background(fc, req); |
791 | } | 791 | } |
792 | 792 | ||
793 | static int fuse_fill_super(struct super_block *sb, void *data, int silent) | 793 | static int fuse_fill_super(struct super_block *sb, void *data, int silent) |
@@ -841,7 +841,7 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent) | |||
841 | sb->s_fs_info = fc; | 841 | sb->s_fs_info = fc; |
842 | 842 | ||
843 | err = -ENOMEM; | 843 | err = -ENOMEM; |
844 | root = get_root_inode(sb, d.rootmode); | 844 | root = fuse_get_root_inode(sb, d.rootmode); |
845 | if (!root) | 845 | if (!root) |
846 | goto err; | 846 | goto err; |
847 | 847 | ||