diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-11 14:44:04 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-11 14:44:04 +0000 |
commit | 3d60e7641b52ac98d789ab091c6ada143dba5f69 (patch) | |
tree | 8b38a5844eedb37238186ebc5d4b19c436a842e4 /kernel/fuse_i.h | |
parent | 3a6ea06efab29198ba664945cec8296b7e1e356e (diff) | |
download | libfuse-3d60e7641b52ac98d789ab091c6ada143dba5f69.tar.gz |
fix
Diffstat (limited to 'kernel/fuse_i.h')
-rw-r--r-- | kernel/fuse_i.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/fuse_i.h b/kernel/fuse_i.h index 3c18975..40dedb2 100644 --- a/kernel/fuse_i.h +++ b/kernel/fuse_i.h @@ -49,6 +49,10 @@ #define FUSE_MAX_PAGES_PER_REQ 32 +/* If more requests are outstanding, then the operation will block */ +#define FUSE_MAX_OUTSTANDING 10 + + /** If the FUSE_DEFAULT_PERMISSIONS flag is given, the filesystem module will check permissions based on the file mode. Otherwise no permission checking is done in the kernel */ @@ -225,6 +229,9 @@ struct fuse_conn { /** Controls the maximum number of outstanding requests */ struct semaphore unused_sem; + /** Semaphore protecting the super block from going away */ + struct semaphore sb_sem; + /** The list of unused requests */ struct list_head unused_list; @@ -261,7 +268,6 @@ struct fuse_getdir_out_i { #define SB_FC(sb) ((sb)->u.generic_sbp) #endif #define INO_FC(inode) SB_FC((inode)->i_sb) -#define DEV_FC(file) ((file)->private_data) #define INO_FI(i) ((struct fuse_inode *) (((struct inode *)(i))+1)) |