|
22 | 22 | #include <linux/backing-dev.h>
|
23 | 23 | #include <linux/uio.h>
|
24 | 24 | #include <trace/events/writeback.h>
|
| 25 | +#include <linux/sched/signal.h> |
25 | 26 |
|
26 | 27 | #include "gfs2.h"
|
27 | 28 | #include "incore.h"
|
|
36 | 37 | #include "super.h"
|
37 | 38 | #include "util.h"
|
38 | 39 | #include "glops.h"
|
| 40 | +#include "aops.h" |
39 | 41 |
|
40 | 42 |
|
41 |
| -static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, |
42 |
| - unsigned int from, unsigned int len) |
| 43 | +void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, |
| 44 | + unsigned int from, unsigned int len) |
43 | 45 | {
|
44 | 46 | struct buffer_head *head = page_buffers(page);
|
45 | 47 | unsigned int bsize = head->b_size;
|
@@ -462,7 +464,7 @@ static int gfs2_jdata_writepages(struct address_space *mapping,
|
462 | 464 | * Returns: errno
|
463 | 465 | */
|
464 | 466 |
|
465 |
| -static int stuffed_readpage(struct gfs2_inode *ip, struct page *page) |
| 467 | +int stuffed_readpage(struct gfs2_inode *ip, struct page *page) |
466 | 468 | {
|
467 | 469 | struct buffer_head *dibh;
|
468 | 470 | u64 dsize = i_size_read(&ip->i_inode);
|
@@ -776,7 +778,7 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping,
|
776 | 778 | * adjust_fs_space - Adjusts the free space available due to gfs2_grow
|
777 | 779 | * @inode: the rindex inode
|
778 | 780 | */
|
779 |
| -static void adjust_fs_space(struct inode *inode) |
| 781 | +void adjust_fs_space(struct inode *inode) |
780 | 782 | {
|
781 | 783 | struct gfs2_sbd *sdp = inode->i_sb->s_fs_info;
|
782 | 784 | struct gfs2_inode *m_ip = GFS2_I(sdp->sd_statfs_inode);
|
@@ -822,11 +824,11 @@ static void adjust_fs_space(struct inode *inode)
|
822 | 824 | * This copies the data from the page into the inode block after
|
823 | 825 | * the inode data structure itself.
|
824 | 826 | *
|
825 |
| - * Returns: errno |
| 827 | + * Returns: copied bytes or errno |
826 | 828 | */
|
827 |
| -static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, |
828 |
| - loff_t pos, unsigned copied, |
829 |
| - struct page *page) |
| 829 | +int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, |
| 830 | + loff_t pos, unsigned copied, |
| 831 | + struct page *page) |
830 | 832 | {
|
831 | 833 | struct gfs2_inode *ip = GFS2_I(inode);
|
832 | 834 | u64 to = pos + copied;
|
@@ -865,7 +867,7 @@ static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh,
|
865 | 867 | * The main write_end function for GFS2. We just put our locking around the VFS
|
866 | 868 | * provided functions.
|
867 | 869 | *
|
868 |
| - * Returns: errno |
| 870 | + * Returns: copied bytes or errno |
869 | 871 | */
|
870 | 872 |
|
871 | 873 | static int gfs2_write_end(struct file *file, struct address_space *mapping,
|
|
0 commit comments