summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi2012-04-26 10:56:36 +0200
committerMiklos Szeredi2012-04-26 10:56:36 +0200
commit519c6040ce04474bc893774f866fd8d907b20429 (patch)
tree0e114d545be1bc2c432f6256edfc28206a835d1e /fs/fuse/fuse_i.h
parentfuse: add FALLOCATE operation (diff)
downloadkernel-qcow2-linux-519c6040ce04474bc893774f866fd8d907b20429.tar.gz
kernel-qcow2-linux-519c6040ce04474bc893774f866fd8d907b20429.tar.xz
kernel-qcow2-linux-519c6040ce04474bc893774f866fd8d907b20429.zip
fuse: optimize fallocate on permanent failure
If userspace filesystem doesn't support fallocate, remember this and don't send request next time. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 572cefc78012..f38fb795f03c 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -478,6 +478,9 @@ struct fuse_conn {
/** Are BSD file locking primitives not implemented by fs? */
unsigned no_flock:1;
+ /** Is fallocate not implemented by fs? */
+ unsigned no_fallocate:1;
+
/** The number of requests waiting for completion */
atomic_t num_waiting;