Skip to content

Commit 7569d3c

Browse files
biger410torvalds
authored andcommitted
ocfs2: load global_inode_alloc
Set global_inode_alloc as OCFS2_FIRST_ONLINE_SYSTEM_INODE, that will make it load during mount. It can be used to test whether some global/system inodes are valid. One use case is that nfsd will test whether root inode is valid. Link: http://lkml.kernel.org/r/20200616183829.87211-3-junxiao.bi@oracle.com Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Jun Piao <piaojun@huawei.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4cd9973 commit 7569d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ocfs2/ocfs2_fs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ struct ocfs2_system_inode_info {
326326
enum {
327327
BAD_BLOCK_SYSTEM_INODE = 0,
328328
GLOBAL_INODE_ALLOC_SYSTEM_INODE,
329+
#define OCFS2_FIRST_ONLINE_SYSTEM_INODE GLOBAL_INODE_ALLOC_SYSTEM_INODE
329330
SLOT_MAP_SYSTEM_INODE,
330-
#define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
331331
HEARTBEAT_SYSTEM_INODE,
332332
GLOBAL_BITMAP_SYSTEM_INODE,
333333
USER_QUOTA_SYSTEM_INODE,

0 commit comments

Comments
 (0)