aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r--fs/fuse/inode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 514b700c863d..182235923cdd 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -555,7 +555,16 @@ static struct file_system_type fuse_fs_type = {
555 .kill_sb = kill_anon_super, 555 .kill_sb = kill_anon_super,
556}; 556};
557 557
558static ssize_t fuse_conn_waiting_show(struct fuse_conn *fc, char *page)
559{
560 return sprintf(page, "%i\n", atomic_read(&fc->num_waiting));
561}
562
563static struct fuse_conn_attr fuse_conn_waiting =
564 __ATTR(waiting, 0400, fuse_conn_waiting_show, NULL);
565
558static struct attribute *fuse_conn_attrs[] = { 566static struct attribute *fuse_conn_attrs[] = {
567 &fuse_conn_waiting.attr,
559 NULL, 568 NULL,
560}; 569};
561 570