Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63900
b: refs/heads/master
c: a00cce3
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh committed Aug 10, 2007
1 parent dfbe60c commit 576a074
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c11e9fafb398411af7558fca913c2fa4a10b1f48
refs/heads/master: a00cce356b5592208e761525a48a25902322cce9
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ static int __ocfs2_change_file_space(struct file *file, struct inode *inode,
struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
struct buffer_head *di_bh = NULL;
handle_t *handle;
unsigned long long max_off = ocfs2_max_file_offset(inode->i_sb->s_blocksize_bits);
unsigned long long max_off = inode->i_sb->s_maxbytes;

if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb))
return -EROFS;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static void ocfs2_destroy_inode(struct inode *inode)
/* From xfs_super.c:xfs_max_file_offset
* Copyright (c) 2000-2004 Silicon Graphics, Inc.
*/
unsigned long long ocfs2_max_file_offset(unsigned int blockshift)
static unsigned long long ocfs2_max_file_offset(unsigned int blockshift)
{
unsigned int pagefactor = 1;
unsigned int bitshift = BITS_PER_LONG - 1;
Expand Down
2 changes: 0 additions & 2 deletions trunk/fs/ocfs2/super.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,4 @@ void __ocfs2_abort(struct super_block *sb,

#define ocfs2_abort(sb, fmt, args...) __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##args)

unsigned long long ocfs2_max_file_offset(unsigned int blockshift);

#endif /* OCFS2_SUPER_H */

0 comments on commit 576a074

Please sign in to comment.