summaryrefslogtreecommitdiffstats
path: root/drivers/uwb
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2010-08-14 00:15:17 +0200
committerTao Ma <tao.ma@oracle.com>2010-09-08 08:25:59 +0200
commite49e27674d1dd2717ad90b21ece8f83102153315 (patch)
tree3ef61e9e4273a236dde61af12cb1e43d8c421c21 /drivers/uwb
parentocfs2: use ocfs2_alloc_dinode_update_counts() instead of open coding (diff)
downloadlinux-e49e27674d1dd2717ad90b21ece8f83102153315.tar.xz
linux-e49e27674d1dd2717ad90b21ece8f83102153315.zip
ocfs2: allow return of new inode block location before allocation of the inode
This allows code which needs to know the eventual block number of an inode but can't allocate it yet due to transaction or lock ordering. For example, ocfs2_create_inode_in_orphan() currently gives a junk blkno for preparation of the orphan dir because it can't yet know where the actual inode is placed - that code is actually in ocfs2_mknod_locked. This is a problem when the orphan dirs are indexed as the junk inode number will create an index entry which goes unused (and fails the later removal from the orphan dir). Now with these interfaces, ocfs2_create_inode_in_orphan() can run the block group search (and get back the inode block number) *before* any actual allocation occurs. Signed-off-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'drivers/uwb')
0 files changed, 0 insertions, 0 deletions