diff options
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 34d10452c56d..c69c1b300155 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -1724,9 +1724,9 @@ out: | |||
1724 | return ret; | 1724 | return ret; |
1725 | } | 1725 | } |
1726 | 1726 | ||
1727 | int ocfs2_write_begin(struct file *file, struct address_space *mapping, | 1727 | static int ocfs2_write_begin(struct file *file, struct address_space *mapping, |
1728 | loff_t pos, unsigned len, unsigned flags, | 1728 | loff_t pos, unsigned len, unsigned flags, |
1729 | struct page **pagep, void **fsdata) | 1729 | struct page **pagep, void **fsdata) |
1730 | { | 1730 | { |
1731 | int ret; | 1731 | int ret; |
1732 | struct buffer_head *di_bh = NULL; | 1732 | struct buffer_head *di_bh = NULL; |
@@ -1877,9 +1877,9 @@ out_write_size: | |||
1877 | return copied; | 1877 | return copied; |
1878 | } | 1878 | } |
1879 | 1879 | ||
1880 | int ocfs2_write_end(struct file *file, struct address_space *mapping, | 1880 | static int ocfs2_write_end(struct file *file, struct address_space *mapping, |
1881 | loff_t pos, unsigned len, unsigned copied, | 1881 | loff_t pos, unsigned len, unsigned copied, |
1882 | struct page *page, void *fsdata) | 1882 | struct page *page, void *fsdata) |
1883 | { | 1883 | { |
1884 | int ret; | 1884 | int ret; |
1885 | struct inode *inode = mapping->host; | 1885 | struct inode *inode = mapping->host; |
@@ -1896,6 +1896,8 @@ int ocfs2_write_end(struct file *file, struct address_space *mapping, | |||
1896 | const struct address_space_operations ocfs2_aops = { | 1896 | const struct address_space_operations ocfs2_aops = { |
1897 | .readpage = ocfs2_readpage, | 1897 | .readpage = ocfs2_readpage, |
1898 | .writepage = ocfs2_writepage, | 1898 | .writepage = ocfs2_writepage, |
1899 | .write_begin = ocfs2_write_begin, | ||
1900 | .write_end = ocfs2_write_end, | ||
1899 | .bmap = ocfs2_bmap, | 1901 | .bmap = ocfs2_bmap, |
1900 | .sync_page = block_sync_page, | 1902 | .sync_page = block_sync_page, |
1901 | .direct_IO = ocfs2_direct_IO, | 1903 | .direct_IO = ocfs2_direct_IO, |