summaryrefslogtreecommitdiff
path: root/include/linux/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2010-05-25 17:06:06 +0400
committerMiklos Szeredi <mszeredi@suse.cz>2010-05-25 17:06:06 +0400
commitb5dd328537edeb4c1d2e71e344b6c443e0874d90 (patch)
treed4f4ec21ce2cd4bdeb596776dc28552789b65845 /include/linux/fuse.h
parent1bf94ca73ea524228b864275efa44373ebb939a0 (diff)
downloadlinux-b5dd328537edeb4c1d2e71e344b6c443e0874d90.tar.xz
fuse: get page reference for readpages
Acquire a page ref on pages in ->readpages() and release them when the read has finished. Not acquiring a reference didn't seem to cause any trouble since the page is locked and will not be kicked out of the page cache during the read. However the following patches will want to remove the page from the cache so a separate ref is needed. Making the reference in req->pages explicit also makes the code easier to understand. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/linux/fuse.h')
0 files changed, 0 insertions, 0 deletions