diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-07-20 14:28:30 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-08-09 20:25:07 -0400 |
commit | a00cce356b5592208e761525a48a25902322cce9 (patch) | |
tree | ea965cdda9b4d2b8a156aaa6e54498351577fb3f /fs/ocfs2/super.c | |
parent | c11e9fafb398411af7558fca913c2fa4a10b1f48 (diff) |
ocfs2: use s_maxbytes directly in ocfs2_change_file_space()
There's no need to recalculate things via ocfs2_max_file_offset() as we've
already done that to fill s_maxbytes, so use that instead. We can also
un-export ocfs2_max_file_offset() then.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 200c7d4790dc..a100b488533e 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -319,7 +319,7 @@ static void ocfs2_destroy_inode(struct inode *inode) | |||
319 | /* From xfs_super.c:xfs_max_file_offset | 319 | /* From xfs_super.c:xfs_max_file_offset |
320 | * Copyright (c) 2000-2004 Silicon Graphics, Inc. | 320 | * Copyright (c) 2000-2004 Silicon Graphics, Inc. |
321 | */ | 321 | */ |
322 | unsigned long long ocfs2_max_file_offset(unsigned int blockshift) | 322 | static unsigned long long ocfs2_max_file_offset(unsigned int blockshift) |
323 | { | 323 | { |
324 | unsigned int pagefactor = 1; | 324 | unsigned int pagefactor = 1; |
325 | unsigned int bitshift = BITS_PER_LONG - 1; | 325 | unsigned int bitshift = BITS_PER_LONG - 1; |