diff options
author | Tao Ma <tao.ma@oracle.com> | 2008-03-05 16:11:46 +0800 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-04-18 08:56:10 -0700 |
commit | 4d0ddb2ce25db2254d468233d942276ecf40bff8 (patch) | |
tree | 6a114da03bb9911de637146f2b24866f1ae96718 /fs/ocfs2/localalloc.c | |
parent | a4a4891164d4f6f383cc17e7c90828a7ca6a1146 (diff) | |
download | kernel_samsung_tuna-4d0ddb2ce25db2254d468233d942276ecf40bff8.zip kernel_samsung_tuna-4d0ddb2ce25db2254d468233d942276ecf40bff8.tar.gz kernel_samsung_tuna-4d0ddb2ce25db2254d468233d942276ecf40bff8.tar.bz2 |
ocfs2: Add inode stealing for ocfs2_reserve_new_inode
Inode allocation is modified to look in other nodes allocators during
extreme out of space situations. We retry our own slot when space is freed
back to the global bitmap, or whenever we've allocated more than 1024 inodes
from another slot.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/localalloc.c')
-rw-r--r-- | fs/ocfs2/localalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c index b6d0719..ce0dc14 100644 --- a/fs/ocfs2/localalloc.c +++ b/fs/ocfs2/localalloc.c @@ -447,6 +447,8 @@ out_mutex: iput(main_bm_inode); out: + if (!status) + ocfs2_init_inode_steal_slot(osb); mlog_exit(status); return status; } |