Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147949
b: refs/heads/master
c: da5e471
h: refs/heads/master
i:
  147947: 48f65e6
v: v3
  • Loading branch information
Miklos Szeredi committed Apr 28, 2009
1 parent 7de4d1d commit 204c017
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d09cb9d7f6e4cb1dd0cf12ee0d352440291c74cf
refs/heads/master: da5e4714578ff323f7a61af490fc3539e68f188b
2 changes: 2 additions & 0 deletions trunk/fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct fuse_file *fuse_file_alloc(struct fuse_conn *fc)
if (unlikely(!ff))
return NULL;

ff->fc = fc;
ff->reserved_req = fuse_request_alloc();
if (unlikely(!ff->reserved_req)) {
kfree(ff);
Expand Down Expand Up @@ -111,6 +112,7 @@ void fuse_finish_open(struct inode *inode, struct file *file,
if (outarg->open_flags & FOPEN_NONSEEKABLE)
nonseekable_open(inode, file);
ff->fh = outarg->fh;
ff->nodeid = get_node_id(inode);
file->private_data = fuse_file_get(ff);
}

Expand Down
10 changes: 8 additions & 2 deletions trunk/fs/fuse/fuse_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,13 @@ struct fuse_inode {
struct list_head writepages;
};

struct fuse_conn;

/** FUSE specific file data */
struct fuse_file {
/** Fuse connection for this file */
struct fuse_conn *fc;

/** Request reserved for flush and release */
struct fuse_req *reserved_req;

Expand All @@ -108,6 +113,9 @@ struct fuse_file {
/** File handle used by userspace */
u64 fh;

/** Node id of this file */
u64 nodeid;

/** Refcount */
atomic_t count;

Expand Down Expand Up @@ -185,8 +193,6 @@ enum fuse_req_state {
FUSE_REQ_FINISHED
};

struct fuse_conn;

/**
* A request to the client
*/
Expand Down

0 comments on commit 204c017

Please sign in to comment.