All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joseph Qi <joseph.qi@huawei.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] ocfs2: why not set EROFS when clearing bits multiple times
Date: Tue, 5 Nov 2013 16:20:08 +0800	[thread overview]
Message-ID: <5278AA38.9050603@huawei.com> (raw)

In ocfs2_block_group_clear_bits, when num_bits != bits_cleared, it just
log an error message without setting EROFS.

The code is below:

	/*
	 * If encountered, it means we are clearing bits multiple times. While
	 * we are handling the case, we still need to be alerted to its
	 * occurrence. Hence, marking it as an ERROR and not NOTICE.
	 */
	if (num_bits != bits_cleared) {
		mlog(ML_ERROR, "Trying to clear %u bits at offset %u in group "
		     "descriptor # %llu (device %s), needed to clear %u bits\n",
		     num_bits, bit_off,
		     (unsigned long long)le64_to_cpu(bg->bg_blkno),
		     alloc_inode->i_sb->s_id, bits_cleared);
	}

If this case happens, does it mean the filesystem have already been
inconsistent? If so, why not set EROFS when this case happens?
Or anyone knows which case will casue bits to be cleared multiple times?
Thanks very much.

             reply	other threads:[~2013-11-05  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-05  8:20 Joseph Qi [this message]
2013-11-05 23:48 ` [Ocfs2-devel] ocfs2: why not set EROFS when clearing bits multiple times Srinivas Eeda
2013-11-06  1:05   ` Joseph Qi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5278AA38.9050603@huawei.com \
    --to=joseph.qi@huawei.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.