]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
fuse: add list of writable files to fuse_inode
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 18 Oct 2007 10:07:03 +0000 (03:07 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:31 +0000 (14:37 -0700)
commit93a8c3cd9e9834dc5f5c373336f3a0065521152d
treece8731adbf7a2bcd441e8b82d3d932abf94b13df
parenta9ff4f87056cd31a8232b88d013dc6c9ad719c18
fuse: add list of writable files to fuse_inode

Each WRITE request must carry a valid file descriptor.  When a page is written
back from a memory mapping, the file through which the page was dirtied is not
available, so a new mechananism is needed to find a suitable file in
->writepage(s).

A list of fuse_files is added to fuse_inode.  The file is removed from the
list in fuse_release().

This patch is in preparation for writable mmap support.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/file.c
fs/fuse/fuse_i.h
fs/fuse/inode.c