public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: linux kernel <linux-kernel@vger.kernel.org>
Subject: PATCH: 2.5.70: Export set_fs_root and set_fs_pwd
Date: Thu, 12 Jun 2003 22:42:28 -0700	[thread overview]
Message-ID: <20030613054228.GA27470@lucon.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

In 2.5.70, intermezzo fs can be configured as module. But intermezzo
references set_fs_root and set_fs_pwd:

# find -name *.[ch] | xargs grep set_fs_root
./include/linux/fs_struct.h:extern void set_fs_root(struct fs_struct *, struct
vfsmount *, struct dentry *);
./fs/intermezzo/intermezzo_fs.h:                set_fs_root(current->fs,
new->rootmnt, new->root);
./fs/intermezzo/intermezzo_fs.h:                set_fs_root(current->fs,
saved->rootmnt, saved->root);
./fs/open.c:    set_fs_root(current->fs, nd.mnt, nd.dentry);
./fs/namespace.c:void set_fs_root(struct fs_struct *fs, struct vfsmount *mnt,
./fs/namespace.c:                               set_fs_root(fs, new_nd->mnt,
new_nd->dentry);
./fs/namespace.c:       set_fs_root(current->fs, namespace->root,
namespace->root->mnt_root);

They should be exported.


H.J.


[-- Attachment #2: fs.patch --]
[-- Type: text/plain, Size: 266 bytes --]

--- linux/fs/namespace.c.fs	Thu Jun 12 09:13:28 2003
+++ linux/fs/namespace.c	Thu Jun 12 15:13:03 2003
@@ -1138,3 +1138,6 @@ void __init mnt_init(unsigned long mempa
 	init_rootfs();
 	init_mount_tree();
 }
+
+EXPORT_SYMBOL(set_fs_root);
+EXPORT_SYMBOL(set_fs_pwd);

             reply	other threads:[~2003-06-13  5:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-13  5:42 H. J. Lu [this message]
2003-06-13  6:46 ` PATCH: 2.5.70: Export set_fs_root and set_fs_pwd Christoph Hellwig
2003-06-13  6:53   ` H. J. Lu

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=20030613054228.GA27470@lucon.org \
    --to=hjl@lucon.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox