diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-09-03 23:03:40 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-13 19:57:08 -0400 |
commit | 12462f1d9f0b96389497438dc2730c6f7410be82 (patch) | |
tree | d96dec791dd45cc8901dc6a894bdbe96ad7e7c67 /fs/ocfs2/suballoc.c | |
parent | 1187c968852e3c668f3b9376083851f81f6eee22 (diff) |
ocfs2: Add the 'inode64' mount option.
Now that ocfs2 limits inode numbers to 32bits, add a mount option to
disable the limit. This parallels XFS. 64bit systems can handle the
larger inode numbers.
[ Added description of inode64 mount option in ocfs2.txt. --Mark ]
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/suballoc.c')
-rw-r--r-- | fs/ocfs2/suballoc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c index 213bdca16fe4..d7a6f928c317 100644 --- a/fs/ocfs2/suballoc.c +++ b/fs/ocfs2/suballoc.c | |||
@@ -601,9 +601,10 @@ int ocfs2_reserve_new_inode(struct ocfs2_super *osb, | |||
601 | /* | 601 | /* |
602 | * stat(2) can't handle i_ino > 32bits, so we tell the | 602 | * stat(2) can't handle i_ino > 32bits, so we tell the |
603 | * lower levels not to allocate us a block group past that | 603 | * lower levels not to allocate us a block group past that |
604 | * limit. | 604 | * limit. The 'inode64' mount option avoids this behavior. |
605 | */ | 605 | */ |
606 | (*ac)->ac_max_block = (u32)~0U; | 606 | if (!(osb->s_mount_opt & OCFS2_MOUNT_INODE64)) |
607 | (*ac)->ac_max_block = (u32)~0U; | ||
607 | 608 | ||
608 | /* | 609 | /* |
609 | * slot is set when we successfully steal inode from other nodes. | 610 | * slot is set when we successfully steal inode from other nodes. |