Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e517c1eb authored by Sundar Raman's avatar Sundar Raman Committed by Android Git Automerger
Browse files

am e5d32128: sdcard: use FUSE_BIG_WRITES for FUSE writes

* commit 'e5d32128':
  sdcard: use FUSE_BIG_WRITES for FUSE writes
parents 46f9223b e5d32128
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -912,7 +912,7 @@ void handle_fuse_request(struct fuse *fuse, struct fuse_in_header *hdr, void *da
        out.major = FUSE_KERNEL_VERSION;
        out.minor = FUSE_KERNEL_MINOR_VERSION;
        out.max_readahead = req->max_readahead;
        out.flags = FUSE_ATOMIC_O_TRUNC;
        out.flags = FUSE_ATOMIC_O_TRUNC | FUSE_BIG_WRITES;
        out.max_background = 32;
        out.congestion_threshold = 32;
        out.max_write = 256 * 1024;
@@ -941,7 +941,7 @@ void handle_fuse_requests(struct fuse *fuse)
    int len;
    
    for (;;) {
        len = read(fuse->fd, req, 8192);
        len = read(fuse->fd, req, sizeof(req));
        if (len < 0) {
            if (errno == EINTR)
                continue;