Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
bba43b37
Commit
bba43b37
authored
Sep 26, 2016
by
Robb Glasser
Committed by
Android (Google) Code Review
Sep 26, 2016
Browse files
Options
Downloads
Plain Diff
Merge "[DO NOT MERGE] Use FUSE_SHORTCIRCUIT if available" into nyc-mr1-dev
parents
320a603b
738e0dcf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sdcard/sdcard.c
+17
-0
17 additions, 0 deletions
sdcard/sdcard.c
with
17 additions
and
0 deletions
sdcard/sdcard.c
+
17
−
0
View file @
bba43b37
...
@@ -1221,7 +1221,13 @@ static int handle_open(struct fuse* fuse, struct fuse_handler* handler,
...
@@ -1221,7 +1221,13 @@ static int handle_open(struct fuse* fuse, struct fuse_handler* handler,
}
}
out
.
fh
=
ptr_to_id
(
h
);
out
.
fh
=
ptr_to_id
(
h
);
out
.
open_flags
=
0
;
out
.
open_flags
=
0
;
#ifdef FUSE_SHORTCIRCUIT
out
.
lower_fd
=
h
->
fd
;
#else
out
.
padding
=
0
;
out
.
padding
=
0
;
#endif
fuse_reply
(
fuse
,
hdr
->
unique
,
&
out
,
sizeof
(
out
));
fuse_reply
(
fuse
,
hdr
->
unique
,
&
out
,
sizeof
(
out
));
return
NO_STATUS
;
return
NO_STATUS
;
}
}
...
@@ -1385,7 +1391,13 @@ static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler,
...
@@ -1385,7 +1391,13 @@ static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler,
}
}
out
.
fh
=
ptr_to_id
(
h
);
out
.
fh
=
ptr_to_id
(
h
);
out
.
open_flags
=
0
;
out
.
open_flags
=
0
;
#ifdef FUSE_SHORTCIRCUIT
out
.
lower_fd
=
-
1
;
#else
out
.
padding
=
0
;
out
.
padding
=
0
;
#endif
fuse_reply
(
fuse
,
hdr
->
unique
,
&
out
,
sizeof
(
out
));
fuse_reply
(
fuse
,
hdr
->
unique
,
&
out
,
sizeof
(
out
));
return
NO_STATUS
;
return
NO_STATUS
;
}
}
...
@@ -1467,6 +1479,11 @@ static int handle_init(struct fuse* fuse, struct fuse_handler* handler,
...
@@ -1467,6 +1479,11 @@ static int handle_init(struct fuse* fuse, struct fuse_handler* handler,
out
.
major
=
FUSE_KERNEL_VERSION
;
out
.
major
=
FUSE_KERNEL_VERSION
;
out
.
max_readahead
=
req
->
max_readahead
;
out
.
max_readahead
=
req
->
max_readahead
;
out
.
flags
=
FUSE_ATOMIC_O_TRUNC
|
FUSE_BIG_WRITES
;
out
.
flags
=
FUSE_ATOMIC_O_TRUNC
|
FUSE_BIG_WRITES
;
#ifdef FUSE_SHORTCIRCUIT
out
.
flags
|=
FUSE_SHORTCIRCUIT
;
#endif
out
.
max_background
=
32
;
out
.
max_background
=
32
;
out
.
congestion_threshold
=
32
;
out
.
congestion_threshold
=
32
;
out
.
max_write
=
MAX_WRITE
;
out
.
max_write
=
MAX_WRITE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment