dir.c (0cf2f7632b1789b811ab20b611c4156e6de2b055) dir.c (3d03a305ded8057155bd3c801e64ffef9f534827)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * dir.c
5 *
6 * Creates, reads, walks and deletes directory-nodes
7 *
8 * Copyright (C) 2002, 2004 Oracle. All rights reserved.

--- 3332 unchanged lines hidden (view full) ---

3341 mlog(0, "extending dir %llu (i_size = %lld)\n",
3342 (unsigned long long)OCFS2_I(dir)->ip_blkno, dir_i_size);
3343
3344 /* dir->i_size is always block aligned. */
3345 spin_lock(&OCFS2_I(dir)->ip_lock);
3346 if (dir_i_size == ocfs2_clusters_to_bytes(sb, OCFS2_I(dir)->ip_clusters)) {
3347 spin_unlock(&OCFS2_I(dir)->ip_lock);
3348 ocfs2_init_dinode_extent_tree(&et, dir, parent_fe_bh);
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * dir.c
5 *
6 * Creates, reads, walks and deletes directory-nodes
7 *
8 * Copyright (C) 2002, 2004 Oracle. All rights reserved.

--- 3332 unchanged lines hidden (view full) ---

3341 mlog(0, "extending dir %llu (i_size = %lld)\n",
3342 (unsigned long long)OCFS2_I(dir)->ip_blkno, dir_i_size);
3343
3344 /* dir->i_size is always block aligned. */
3345 spin_lock(&OCFS2_I(dir)->ip_lock);
3346 if (dir_i_size == ocfs2_clusters_to_bytes(sb, OCFS2_I(dir)->ip_clusters)) {
3347 spin_unlock(&OCFS2_I(dir)->ip_lock);
3348 ocfs2_init_dinode_extent_tree(&et, dir, parent_fe_bh);
3349 num_free_extents = ocfs2_num_free_extents(osb, dir, &et);
3349 num_free_extents = ocfs2_num_free_extents(osb, &et);
3350 if (num_free_extents < 0) {
3351 status = num_free_extents;
3352 mlog_errno(status);
3353 goto bail;
3354 }
3355
3356 if (!num_free_extents) {
3357 status = ocfs2_reserve_new_metadata(osb, el, &meta_ac);

--- 1227 unchanged lines hidden ---
3350 if (num_free_extents < 0) {
3351 status = num_free_extents;
3352 mlog_errno(status);
3353 goto bail;
3354 }
3355
3356 if (!num_free_extents) {
3357 status = ocfs2_reserve_new_metadata(osb, el, &meta_ac);

--- 1227 unchanged lines hidden ---