All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] Large (> 16TiB) volumes revisited
Date: Wed, 23 Jun 2010 17:55:37 -0700	[thread overview]
Message-ID: <20100624005537.GG20090@mail.oracle.com> (raw)
In-Reply-To: <AANLkTilj3GhmxKpZ9C5QSh6w7BRYjmU-KQ6hcnSsw6gX@mail.gmail.com>

On Wed, Jun 23, 2010 at 05:45:13PM -0700, Patrick J. LoPresti wrote:
> Oh, one trivial thing I forgot to mention:  I changed the errno for
> the failure cases from EINVAL to EFBIG since that is what ext4 uses.

	That's fine.

> My next step will be to test this...  But what is next after that?  Do
> I send this as a "[PATCH] ..." to ocfs2-devel and linux-kernel, or do
> I just send to ocfs2-devel and one of you passes it on?

	Yes, you send it as a [PATCH] to ocfs2-devel and linux-kernel.
It will still go through me, but we want the process to be followed.

> +/* Check to make sure entire volume is addressable on this system. */
> +static int ocfs2_check_addressable(struct ocfs2_super *osb,
> +				   struct ocfs2_dinode *di)
> +{
> +	int status = 0;
> +	const u32 clusters = le32_to_cpu(di->i_clusters);
> +	const u64 max_block = ocfs2_clusters_to_blocks(osb->sb, clusters) - 1;

	These don't need to be const.  Sure, they don't change, but
you're not signifying anything special with them (like passing them to a
subfunction or something).  And you don't really need the clusters
temporary.

	u64 max_block =
		ocfs2_clusters_to_blocks(osb->sb,
					 le32_to_cpu(di->i_clusters)) - 1;

Joel

-- 

 The herd instinct among economists makes sheep look like
 independent thinkers.

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

  reply	other threads:[~2010-06-24  0:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-23  0:11 [Ocfs2-devel] Large (> 16TiB) volumes revisited Patrick J. LoPresti
2010-06-23  0:49 ` Joel Becker
2010-06-23  1:12   ` Patrick J. LoPresti
2010-06-23  1:36     ` Joel Becker
2010-06-24  0:04       ` Patrick J. LoPresti
2010-06-24  0:14         ` Joel Becker
2010-06-24  0:45           ` Patrick J. LoPresti
2010-06-24  0:55             ` Joel Becker [this message]
2010-06-24 16:53               ` Patrick J. LoPresti
2010-06-24 23:53                 ` Patrick J. LoPresti
2010-06-26 16:49                   ` Patrick J. LoPresti
2010-06-27 19:02                     ` Patrick J. LoPresti
2010-06-28 22:32                       ` Patrick J. LoPresti
2010-06-29  0:47                         ` Sunil Mushran
2010-06-29  1:15                           ` Patrick J. LoPresti
2010-06-29  1:54                             ` Sunil Mushran
2010-06-29  2:50                               ` Patrick J. LoPresti
2010-06-29  4:21                                 ` Sunil Mushran
2010-06-29 19:43                                   ` Patrick J. LoPresti
2010-06-29 20:22                                     ` Sunil Mushran

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=20100624005537.GG20090@mail.oracle.com \
    --to=joel.becker@oracle.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.