From: Nick Piggin These are intended to replace prepare_write and commit_write with more flexible alternatives that are also able to avoid the buffered write deadlock problems efficiently (which prepare_write is unable to do). Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton --- fs/revoked_inode.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+) diff -puN fs/revoked_inode.c~fs-introduce-write_begin-write_end-and-perform_write-aops-revoke fs/revoked_inode.c --- a/fs/revoked_inode.c~fs-introduce-write_begin-write_end-and-perform_write-aops-revoke +++ a/fs/revoked_inode.c @@ -384,6 +384,20 @@ static int revoked_commit_write(struct f return -EIO; } +static int revoked_write_begin(struct file *file, struct address_space *mapping, + loff_t pos, unsigned len, unsigned flags, + struct page **pagep, void **fsdata) +{ + return -EIO; +} + +static int revoked_write_end(struct file *file, struct address_space *mapping, + loff_t pos, unsigned len, unsigned copied, + struct page *page, void *fsdata) +{ + return -EIO; +} + static ssize_t revoked_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) _