All of lore.kernel.org
 help / color / mirror / Atom feed
From: alex chen <alex.chen@huawei.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] a puzzle about is_global_system_inode function
Date: Tue, 24 Oct 2017 20:35:10 +0800	[thread overview]
Message-ID: <59EF337E.3040809@huawei.com> (raw)
In-Reply-To: <2061999c-f11b-b50d-55e4-09c847a5f25d@suse.com>

Hi Larry Chen,

I think the reason is because the GLOBAL_INODE_ALLOC_SYSTEM_INODE
is just used when the device is offline, such as used in mkfs.ocfs2
and tunefs.ocfs2, it is not needed when the device is online.

Thanks
Alex

On 2017/10/24 18:39, Larry Chen wrote:
> Hi all,
> 
> Function is_global_system_inode checks whether the type is
> in the range [OCFS2_FIRST_ONLINE_SYSTEM_INODE , 
> OCFS2_LAST_GLOBAL_SYSTEM_INODE ].
> But why the range does not include GLOBAL_INODE_ALLOC_SYSTEM_INODE ??
> 
> enum {
>        ....
>         GLOBAL_INODE_ALLOC_SYSTEM_INODE,
>          SLOT_MAP_SYSTEM_INODE,
> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
>          HEARTBEAT_SYSTEM_INODE,
>          GLOBAL_BITMAP_SYSTEM_INODE,
>          USER_QUOTA_SYSTEM_INODE,
>          GROUP_QUOTA_SYSTEM_INODE,
> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GROUP_QUOTA_SYSTEM_INODE
>      ....
> }
> 
> Thanks
> Larry Chen
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
> 

      parent reply	other threads:[~2017-10-24 12:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-24 10:39 [Ocfs2-devel] a puzzle about is_global_system_inode function Larry Chen
2017-10-24 11:04 ` Joseph Qi
2017-10-24 12:23   ` Larry Chen
2017-10-24 13:16     ` ge changwei
2017-10-25  2:08       ` Larry Chen
2017-10-24 12:35 ` alex chen [this message]

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=59EF337E.3040809@huawei.com \
    --to=alex.chen@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.