diff options
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 992eb567cb4d..7e508e2942ca 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -1533,7 +1533,7 @@ static int __ocfs2_change_file_space(struct file *file, struct inode *inode, | |||
1533 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 1533 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
1534 | struct buffer_head *di_bh = NULL; | 1534 | struct buffer_head *di_bh = NULL; |
1535 | handle_t *handle; | 1535 | handle_t *handle; |
1536 | unsigned long long max_off = ocfs2_max_file_offset(inode->i_sb->s_blocksize_bits); | 1536 | unsigned long long max_off = inode->i_sb->s_maxbytes; |
1537 | 1537 | ||
1538 | if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) | 1538 | if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) |
1539 | return -EROFS; | 1539 | return -EROFS; |