diff options
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 56963e6c46c0..8e7cafb5fc6c 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -78,7 +78,8 @@ static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, | |||
78 | 78 | ||
79 | if (!OCFS2_IS_VALID_DINODE(fe)) { | 79 | if (!OCFS2_IS_VALID_DINODE(fe)) { |
80 | mlog(ML_ERROR, "Invalid dinode #%llu: signature = %.*s\n", | 80 | mlog(ML_ERROR, "Invalid dinode #%llu: signature = %.*s\n", |
81 | (unsigned long long)fe->i_blkno, 7, fe->i_signature); | 81 | (unsigned long long)le64_to_cpu(fe->i_blkno), 7, |
82 | fe->i_signature); | ||
82 | goto bail; | 83 | goto bail; |
83 | } | 84 | } |
84 | 85 | ||
@@ -939,9 +940,9 @@ out: | |||
939 | * Returns a negative error code or the number of bytes copied into | 940 | * Returns a negative error code or the number of bytes copied into |
940 | * the page. | 941 | * the page. |
941 | */ | 942 | */ |
942 | int ocfs2_write_data_page(struct inode *inode, handle_t *handle, | 943 | static int ocfs2_write_data_page(struct inode *inode, handle_t *handle, |
943 | u64 *p_blkno, struct page *page, | 944 | u64 *p_blkno, struct page *page, |
944 | struct ocfs2_write_ctxt *wc, int new) | 945 | struct ocfs2_write_ctxt *wc, int new) |
945 | { | 946 | { |
946 | int ret, copied = 0; | 947 | int ret, copied = 0; |
947 | unsigned int from = 0, to = 0; | 948 | unsigned int from = 0, to = 0; |
@@ -1086,7 +1087,7 @@ static ssize_t ocfs2_write(struct file *file, u32 phys, handle_t *handle, | |||
1086 | for(i = 0; i < numpages; i++) { | 1087 | for(i = 0; i < numpages; i++) { |
1087 | index = start + i; | 1088 | index = start + i; |
1088 | 1089 | ||
1089 | cpages[i] = grab_cache_page(mapping, index); | 1090 | cpages[i] = find_or_create_page(mapping, index, GFP_NOFS); |
1090 | if (!cpages[i]) { | 1091 | if (!cpages[i]) { |
1091 | ret = -ENOMEM; | 1092 | ret = -ENOMEM; |
1092 | mlog_errno(ret); | 1093 | mlog_errno(ret); |