Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1481923
| From | Miklos Szeredi <mszeredi@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 06/17] vfs: remove page_readlink() |
| Date | 2016-09-12 21:40 +0200 |
| Message-ID | <sgFfd-7H4-59@gated-at.bofh.it> (permalink) |
| References | <sgF5v-7Bx-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Remove this unused helper (sole previous user was AFS).
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
---
fs/namei.c | 11 -----------
include/linux/fs.h | 1 -
2 files changed, 12 deletions(-)
diff --git a/fs/namei.c b/fs/namei.c
index adb04146df09..c06a68b82088 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -4713,17 +4713,6 @@ void page_put_link(void *arg)
}
EXPORT_SYMBOL(page_put_link);
-int page_readlink(struct dentry *dentry, char __user *buffer, int buflen)
-{
- DEFINE_DELAYED_CALL(done);
- int res = readlink_copy(buffer, buflen,
- page_get_link(dentry, d_inode(dentry),
- &done));
- do_delayed_call(&done);
- return res;
-}
-EXPORT_SYMBOL(page_readlink);
-
/*
* The nofs argument instructs pagecache_write_begin to pass AOP_FLAG_NOFS
*/
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 901e25d495cc..5448a9b88c41 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2890,7 +2890,6 @@ extern const struct file_operations generic_ro_fops;
#define special_file(m) (S_ISCHR(m)||S_ISBLK(m)||S_ISFIFO(m)||S_ISSOCK(m))
extern int readlink_copy(char __user *, int, const char *);
-extern int page_readlink(struct dentry *, char __user *, int);
extern const char *page_get_link(struct dentry *, struct inode *,
struct delayed_call *);
extern void page_put_link(void *);
--
2.5.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/17] clean up readlinks Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 08/17] proc: merge proc_pid_readlink() into proc_pid_get_link() Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 15/17] vfs: add vfs_get_link() helper Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 09/17] proc: merge proc_ns_readlink() into proc_ns_get_link() Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 04/17] afs: use generic_readlink Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 12/17] vfs: remove ".readlink = generic_readlink" assignments Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 06/17] vfs: remove page_readlink() Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 03/17] proc/self: use generic_readlink Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200 [PATCH 16/17] ovl: use vfs_get_link() Miklos Szeredi <mszeredi@redhat.com> - 2016-09-12 21:40 +0200
csiph-web