From: Miklos Szeredi <[email protected]>
Fix following warnings introduced by
fs-introduce-write_begin-write_end-and-perform_write-aops-revoke.patch
fs/revoked_inode.c:381: warning: â??revoked_write_beginâ?? defined but not used
fs/revoked_inode.c:388: warning: â??revoked_write_endâ?? defined but not used
Signed-off-by: Miklos Szeredi <[email protected]>
---
Index: linux/fs/revoked_inode.c
===================================================================
--- linux.orig/fs/revoked_inode.c 2007-08-09 11:01:55.000000000 +0200
+++ linux/fs/revoked_inode.c 2007-08-09 11:04:37.000000000 +0200
@@ -363,18 +363,6 @@ static int revoked_writepage(struct page
return -EIO;
}
-static int revoked_prepare_write(struct file *file, struct page *page,
- unsigned from, unsigned to)
-{
- return -EIO;
-}
-
-static int revoked_commit_write(struct file *file, struct page *page,
- unsigned from, unsigned to)
-{
- 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)
@@ -399,8 +387,8 @@ static ssize_t revoked_direct_IO(int rw,
static const struct address_space_operations revoked_aops = {
.readpage = revoked_readpage,
.writepage = revoked_writepage,
- .prepare_write = revoked_prepare_write,
- .commit_write = revoked_commit_write,
+ .write_begin = revoked_write_begin,
+ .write_end = revoked_write_end,
.direct_IO = revoked_direct_IO,
};
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]