fuse: lock page in mkwrite
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Oct 2013 14:44:51 +0000 (16:44 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Oct 2013 14:44:51 +0000 (16:44 +0200)
commitcca2437045dda994d23bd65891b71e091fa35b5a
tree6eee39d3226134edf8c9d68ce381668542b9a915
parent385b126815d9278cf347504cf17ba62fb57e00ca
fuse: lock page in mkwrite

Lock the page in fuse_page_mkwrite() to protect against a race with
fuse_writepage() where the page is redirtied before the actual writeback
begins.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c