aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-11-26 06:03:55 -0500
committerMiklos Szeredi <miklos@szeredi.hu>2008-11-26 06:03:55 -0500
commitb93f858ab2a4bee779c360002f313ad6c3504cdc (patch)
tree0523108e8c76035f35a3712ced5bf8e329731c78 /fs/fuse/dev.c
parent95668a69a4bb862063c4d28a746e55107dee7b98 (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/dev.c')
-rw-r--r--fs/fuse/dev.c23
1 files changed, 12 insertions, 11 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
382void request_send(struct fuse_conn *fc, struct fuse_req *req) 382void 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
401static void request_send_nowait_locked(struct fuse_conn *fc, 401static 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
416static void request_send_nowait(struct fuse_conn *fc, struct fuse_req *req) 416static 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
428void request_send_noreply(struct fuse_conn *fc, struct fuse_req *req) 428void 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
434void request_send_background(struct fuse_conn *fc, struct fuse_req *req) 434void 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 */
445void request_send_background_locked(struct fuse_conn *fc, struct fuse_req *req) 445void 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/*