diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-03-03 13:24:33 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-03-24 17:58:28 -0500 |
commit | b0697053f9e8de9cea3d510d9e290851ece9460b (patch) | |
tree | bcfa2ae33e4a5302ddbe94dec0eaf95013e79850 /fs/ocfs2/uptodate.c | |
parent | 29004858a76ba9e26393dd8a85e653f105a33753 (diff) |
ocfs2: don't use MLF* in the file system
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/uptodate.c')
-rw-r--r-- | fs/ocfs2/uptodate.c | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/fs/ocfs2/uptodate.c b/fs/ocfs2/uptodate.c index 300b5bedfb21..04a684dfdd96 100644 --- a/fs/ocfs2/uptodate.c +++ b/fs/ocfs2/uptodate.c | |||
@@ -119,8 +119,8 @@ void ocfs2_metadata_cache_purge(struct inode *inode) | |||
119 | tree = !(oi->ip_flags & OCFS2_INODE_CACHE_INLINE); | 119 | tree = !(oi->ip_flags & OCFS2_INODE_CACHE_INLINE); |
120 | to_purge = ci->ci_num_cached; | 120 | to_purge = ci->ci_num_cached; |
121 | 121 | ||
122 | mlog(0, "Purge %u %s items from Inode %"MLFu64"\n", to_purge, | 122 | mlog(0, "Purge %u %s items from Inode %llu\n", to_purge, |
123 | tree ? "array" : "tree", oi->ip_blkno); | 123 | tree ? "array" : "tree", (unsigned long long)oi->ip_blkno); |
124 | 124 | ||
125 | /* If we're a tree, save off the root so that we can safely | 125 | /* If we're a tree, save off the root so that we can safely |
126 | * initialize the cache. We do the work to free tree members | 126 | * initialize the cache. We do the work to free tree members |
@@ -136,8 +136,8 @@ void ocfs2_metadata_cache_purge(struct inode *inode) | |||
136 | * easily detect counting errors. Unfortunately, this is only | 136 | * easily detect counting errors. Unfortunately, this is only |
137 | * meaningful for trees. */ | 137 | * meaningful for trees. */ |
138 | if (tree && purged != to_purge) | 138 | if (tree && purged != to_purge) |
139 | mlog(ML_ERROR, "Inode %"MLFu64", count = %u, purged = %u\n", | 139 | mlog(ML_ERROR, "Inode %llu, count = %u, purged = %u\n", |
140 | oi->ip_blkno, to_purge, purged); | 140 | (unsigned long long)oi->ip_blkno, to_purge, purged); |
141 | } | 141 | } |
142 | 142 | ||
143 | /* Returns the index in the cache array, -1 if not found. | 143 | /* Returns the index in the cache array, -1 if not found. |
@@ -186,8 +186,9 @@ static int ocfs2_buffer_cached(struct ocfs2_inode_info *oi, | |||
186 | 186 | ||
187 | spin_lock(&oi->ip_lock); | 187 | spin_lock(&oi->ip_lock); |
188 | 188 | ||
189 | mlog(0, "Inode %"MLFu64", query block %llu (inline = %u)\n", | 189 | mlog(0, "Inode %llu, query block %llu (inline = %u)\n", |
190 | oi->ip_blkno, (unsigned long long) bh->b_blocknr, | 190 | (unsigned long long)oi->ip_blkno, |
191 | (unsigned long long) bh->b_blocknr, | ||
191 | !!(oi->ip_flags & OCFS2_INODE_CACHE_INLINE)); | 192 | !!(oi->ip_flags & OCFS2_INODE_CACHE_INLINE)); |
192 | 193 | ||
193 | if (oi->ip_flags & OCFS2_INODE_CACHE_INLINE) | 194 | if (oi->ip_flags & OCFS2_INODE_CACHE_INLINE) |
@@ -293,12 +294,12 @@ static void ocfs2_expand_cache(struct ocfs2_inode_info *oi, | |||
293 | struct ocfs2_caching_info *ci = &oi->ip_metadata_cache; | 294 | struct ocfs2_caching_info *ci = &oi->ip_metadata_cache; |
294 | 295 | ||
295 | mlog_bug_on_msg(ci->ci_num_cached != OCFS2_INODE_MAX_CACHE_ARRAY, | 296 | mlog_bug_on_msg(ci->ci_num_cached != OCFS2_INODE_MAX_CACHE_ARRAY, |
296 | "Inode %"MLFu64", num cached = %u, should be %u\n", | 297 | "Inode %llu, num cached = %u, should be %u\n", |
297 | oi->ip_blkno, ci->ci_num_cached, | 298 | (unsigned long long)oi->ip_blkno, ci->ci_num_cached, |
298 | OCFS2_INODE_MAX_CACHE_ARRAY); | 299 | OCFS2_INODE_MAX_CACHE_ARRAY); |
299 | mlog_bug_on_msg(!(oi->ip_flags & OCFS2_INODE_CACHE_INLINE), | 300 | mlog_bug_on_msg(!(oi->ip_flags & OCFS2_INODE_CACHE_INLINE), |
300 | "Inode %"MLFu64" not marked as inline anymore!\n", | 301 | "Inode %llu not marked as inline anymore!\n", |
301 | oi->ip_blkno); | 302 | (unsigned long long)oi->ip_blkno); |
302 | assert_spin_locked(&oi->ip_lock); | 303 | assert_spin_locked(&oi->ip_lock); |
303 | 304 | ||
304 | /* Be careful to initialize the tree members *first* because | 305 | /* Be careful to initialize the tree members *first* because |
@@ -316,8 +317,8 @@ static void ocfs2_expand_cache(struct ocfs2_inode_info *oi, | |||
316 | tree[i] = NULL; | 317 | tree[i] = NULL; |
317 | } | 318 | } |
318 | 319 | ||
319 | mlog(0, "Expanded %"MLFu64" to a tree cache: flags 0x%x, num = %u\n", | 320 | mlog(0, "Expanded %llu to a tree cache: flags 0x%x, num = %u\n", |
320 | oi->ip_blkno, oi->ip_flags, ci->ci_num_cached); | 321 | (unsigned long long)oi->ip_blkno, oi->ip_flags, ci->ci_num_cached); |
321 | } | 322 | } |
322 | 323 | ||
323 | /* Slow path function - memory allocation is necessary. See the | 324 | /* Slow path function - memory allocation is necessary. See the |
@@ -332,8 +333,9 @@ static void __ocfs2_set_buffer_uptodate(struct ocfs2_inode_info *oi, | |||
332 | struct ocfs2_meta_cache_item *tree[OCFS2_INODE_MAX_CACHE_ARRAY] = | 333 | struct ocfs2_meta_cache_item *tree[OCFS2_INODE_MAX_CACHE_ARRAY] = |
333 | { NULL, }; | 334 | { NULL, }; |
334 | 335 | ||
335 | mlog(0, "Inode %"MLFu64", block %llu, expand = %d\n", | 336 | mlog(0, "Inode %llu, block %llu, expand = %d\n", |
336 | oi->ip_blkno, (unsigned long long) block, expand_tree); | 337 | (unsigned long long)oi->ip_blkno, |
338 | (unsigned long long)block, expand_tree); | ||
337 | 339 | ||
338 | new = kmem_cache_alloc(ocfs2_uptodate_cachep, GFP_KERNEL); | 340 | new = kmem_cache_alloc(ocfs2_uptodate_cachep, GFP_KERNEL); |
339 | if (!new) { | 341 | if (!new) { |
@@ -414,8 +416,9 @@ void ocfs2_set_buffer_uptodate(struct inode *inode, | |||
414 | if (ocfs2_buffer_cached(oi, bh)) | 416 | if (ocfs2_buffer_cached(oi, bh)) |
415 | return; | 417 | return; |
416 | 418 | ||
417 | mlog(0, "Inode %"MLFu64", inserting block %llu\n", oi->ip_blkno, | 419 | mlog(0, "Inode %llu, inserting block %llu\n", |
418 | (unsigned long long) bh->b_blocknr); | 420 | (unsigned long long)oi->ip_blkno, |
421 | (unsigned long long)bh->b_blocknr); | ||
419 | 422 | ||
420 | /* No need to recheck under spinlock - insertion is guarded by | 423 | /* No need to recheck under spinlock - insertion is guarded by |
421 | * ip_io_mutex */ | 424 | * ip_io_mutex */ |
@@ -504,8 +507,9 @@ void ocfs2_remove_from_cache(struct inode *inode, | |||
504 | struct ocfs2_caching_info *ci = &oi->ip_metadata_cache; | 507 | struct ocfs2_caching_info *ci = &oi->ip_metadata_cache; |
505 | 508 | ||
506 | spin_lock(&oi->ip_lock); | 509 | spin_lock(&oi->ip_lock); |
507 | mlog(0, "Inode %"MLFu64", remove %llu, items = %u, array = %u\n", | 510 | mlog(0, "Inode %llu, remove %llu, items = %u, array = %u\n", |
508 | oi->ip_blkno, (unsigned long long) block, ci->ci_num_cached, | 511 | (unsigned long long)oi->ip_blkno, |
512 | (unsigned long long) block, ci->ci_num_cached, | ||
509 | oi->ip_flags & OCFS2_INODE_CACHE_INLINE); | 513 | oi->ip_flags & OCFS2_INODE_CACHE_INLINE); |
510 | 514 | ||
511 | if (oi->ip_flags & OCFS2_INODE_CACHE_INLINE) { | 515 | if (oi->ip_flags & OCFS2_INODE_CACHE_INLINE) { |