Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76943
b: refs/heads/master
c: e9d578a
h: refs/heads/master
i:
  76941: 5871ad0
  76939: b91b401
  76935: ccb10ed
  76927: ce8e065
v: v3
  • Loading branch information
Tao Ma authored and Mark Fasheh committed Jan 25, 2008
1 parent 18bac34 commit 97605dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 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: 1252c434e39dc60ca9e8ed682f3e04930e2c08de
refs/heads/master: e9d578a8f279d5e7d1e903f436aefc76ba330b43
19 changes: 1 addition & 18 deletions trunk/fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
int i, cbits, bbits;
struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data;
struct inode *inode = NULL;
struct buffer_head *bitmap_bh = NULL;
struct ocfs2_journal *journal;
__le32 uuid_net_key;
struct ocfs2_super *osb;
Expand Down Expand Up @@ -1497,25 +1496,9 @@ static int ocfs2_initialize_super(struct super_block *sb,
}

osb->bitmap_blkno = OCFS2_I(inode)->ip_blkno;

/* We don't have a cluster lock on the bitmap here because
* we're only interested in static information and the extra
* complexity at mount time isn't worht it. Don't pass the
* inode in to the read function though as we don't want it to
* be put in the cache. */
status = ocfs2_read_block(osb, osb->bitmap_blkno, &bitmap_bh, 0,
NULL);
iput(inode);
if (status < 0) {
mlog_errno(status);
goto bail;
}

di = (struct ocfs2_dinode *) bitmap_bh->b_data;
osb->bitmap_cpg = le16_to_cpu(di->id2.i_chain.cl_cpg);
brelse(bitmap_bh);
mlog(0, "cluster bitmap inode: %llu, clusters per group: %u\n",
(unsigned long long)osb->bitmap_blkno, osb->bitmap_cpg);
osb->bitmap_cpg = ocfs2_group_bitmap_size(sb) * 8;

status = ocfs2_init_slot_info(osb);
if (status < 0) {
Expand Down

0 comments on commit 97605dd

Please sign in to comment.