thanks, still nothing when using find / -iname '*suballoc.*'
This code is it: 2398 /* The caller got this descriptor from 2399 * ocfs2_read_group_descriptor(). Any corruption is a code bug. */ 2400 BUG_ON(!OCFS2_IS_VALID_GROUP_DESC(bg)); 2401 2402 trace_ocfs2_block_group_clear_bits(bit_off, num_bits); 2403 2404 BUG_ON(undo_fn && !ocfs2_is_cluster_bitmap(alloc_inode)); 2405 status = ocfs2_journal_access_gd(handle, INODE_CACHE(alloc_inode), 2406 group_bh, 2407 undo_fn ? 2408 OCFS2_JOURNAL_ACCESS_UNDO : 2409 OCFS2_JOURNAL_ACCESS_WRITE); 2410 if (status < 0) { 2411 mlog_errno(status); 2412 goto bail; 2413 } 2414 2415 if (undo_fn) { 2416 jbd_lock_bh_state(group_bh); 2417 undo_bg = (struct ocfs2_group_desc *) 2418 bh2jh(group_bh)->b_committed_data; 2419 BUG_ON(!undo_bg); 2420 } 2421 2422 tmp = num_bits; 2423 while(tmp--) { 2424 ocfs2_clear_bit((bit_off + tmp), 2425 (unsigned long *) bg->bg_bitmap); 2426 if (undo_fn) 2427 undo_fn(bit_off + tmp, 2428 (unsigned long *) undo_bg->bg_bitmap); 2429 } 2430 le16_add_cpu(&bg->bg_free_bits_count, num_bits); 2431 if (le16_to_cpu(bg->bg_free_bits_count) > le16_to_cpu(bg->bg_bits)) { 2432 ocfs2_error(alloc_inode->i_sb, "Group descriptor # %llu has bit" 2433 " count %u but claims %u are freed. num_bits %d", 2434 (unsigned long long)le64_to_cpu(bg->bg_blkno), 2435 le16_to_cpu(bg->bg_bits), 2436 le16_to_cpu(bg->bg_free_bits_count), num_bits); 2437 return -EROFS; 2438 } 2439 On Wed, Sep 14, 2016 at 1:52 PM, Werner Flamme <werner.fla...@ufz.de> wrote: > Ishmael Tsoaela [14.09.2016 13:43]: >> thanks for the response. I actually downloaded the source code for >> kernel version 4.2.0 I am on the same version as: >> >> # uname -r >> 4.2.0-27-generic >> >> wget >> http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_4.2.0.orig.tar.gz >> tar xvf linux_4.2.0.orig.tar.gz >> >> cd /home/ishmael/linux-4.2/fs/ocfs2 >> >> >> I found the suballoc.c in there. >> >> >> I was not able to find the code on the OS itself >> >> root@nodeB:/# find / -iname *suballoc.* > > Better use # find / -iname '*suballoc.*', so that your shell will not > make the standard replacements on * :) > >> >> Will the code in the last email suffice? > > I wouldn't know until you tell us that the code in your file is the same > as you posted :) > > Werner > > -- > > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > https://oss.oracle.com/mailman/listinfo/ocfs2-users _______________________________________________ Ocfs2-users mailing list Ocfs2-users@oss.oracle.com https://oss.oracle.com/mailman/listinfo/ocfs2-users