From: Jan Blunck <jblunck@suse.de>
To: Linux-Kernel Mailinglist <linux-kernel@vger.kernel.org>,
Christoph Hellwig <hch@infradead.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH 2/9] d_path: kerneldoc cleanup
Date: Mon, 05 Nov 2007 17:32:34 +0100 [thread overview]
Message-ID: <20071105163233.043662936@hasse.suse.de> (raw)
In-Reply-To: 20071105163232.550298985@hasse.suse.de
[-- Attachment #1: vfs/d_path-kerneldoc_cleanup.diff --]
[-- Type: text/plain, Size: 1981 bytes --]
Move and update d_path() kernel API documentation.
Signed-off-by: Jan Blunck <jblunck@suse.de>
Acked-by: Christoph Hellwig <hch@infradead.org>
---
fs/dcache.c | 35 ++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)
Index: b/fs/dcache.c
===================================================================
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1762,22 +1762,6 @@ shouldnt_be_hashed:
goto shouldnt_be_hashed;
}
-/**
- * d_path - return the path of a dentry
- * @dentry: dentry to report
- * @vfsmnt: vfsmnt to which the dentry belongs
- * @root: root dentry
- * @rootmnt: vfsmnt to which the root dentry belongs
- * @buffer: buffer to return value in
- * @buflen: buffer length
- *
- * Convert a dentry into an ASCII path name. If the entry has been deleted
- * the string " (deleted)" is appended. Note that this is ambiguous.
- *
- * Returns the buffer or an error code if the path was too long.
- *
- * "buflen" should be positive. Caller holds the dcache_lock.
- */
static char * __d_path(struct dentry *dentry, struct vfsmount *vfsmnt,
struct path *root, char *buffer, int buflen)
{
@@ -1845,9 +1829,22 @@ Elong:
return ERR_PTR(-ENAMETOOLONG);
}
-/* write full pathname into buffer and return start of pathname */
-char * d_path(struct dentry *dentry, struct vfsmount *vfsmnt,
- char *buf, int buflen)
+/**
+ * d_path - return the path of a dentry
+ * @dentry: dentry to report
+ * @vfsmnt: vfsmnt to which the dentry belongs
+ * @buf: buffer to return value in
+ * @buflen: buffer length
+ *
+ * Convert a dentry into an ASCII path name. If the entry has been deleted
+ * the string " (deleted)" is appended. Note that this is ambiguous.
+ *
+ * Returns the buffer or an error code if the path was too long.
+ *
+ * "buflen" should be positive. Caller holds the dcache_lock.
+ */
+char *d_path(struct dentry *dentry, struct vfsmount *vfsmnt,
+ char *buf, int buflen)
{
char *res;
struct path root;
next prev parent reply other threads:[~2007-11-05 16:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 16:32 [PATCH 0/9] struct path related cleanups of d_path() code (V2) Jan Blunck
2007-11-05 16:32 ` [PATCH 1/9] One less parameter to __d_path Jan Blunck
2007-11-05 16:32 ` Jan Blunck [this message]
2007-11-05 16:32 ` [PATCH 3/9] d_path: Use struct path in struct avc_audit_data Jan Blunck
2007-11-05 16:32 ` [PATCH 4/9] d_path: Make proc_get_link() use a struct path argument Jan Blunck
2007-11-05 16:32 ` [PATCH 5/9] d_path: Make get_dcookie() " Jan Blunck
2007-11-05 16:32 ` [PATCH 6/9] Use struct path in struct svc_export Jan Blunck
2007-11-05 16:32 ` [PATCH 7/9] Use struct path in struct svc_expkey Jan Blunck
2007-11-05 16:43 ` J. Bruce Fields
2007-11-05 16:32 ` [PATCH 8/9] d_path: Make seq_path() use a struct path argument Jan Blunck
2007-11-05 16:32 ` [PATCH 9/9] d_path: Make d_path() use a struct path Jan Blunck
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=20071105163233.043662936@hasse.suse.de \
--to=jblunck@suse.de \
--cc=akpm@linux-foundation.org \
--cc=hch@infradead.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