All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: remove page_readlink
@ 2017-05-09 13:08 Christoph Hellwig
  2017-05-09 13:17 ` Jeffrey Altman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Christoph Hellwig @ 2017-05-09 13:08 UTC (permalink / raw)
  To: viro; +Cc: dhowells, linux-afs, linux-fsdevel

Opencode it in AFS, the only user instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/afs/mntpt.c     | 13 ++++++++++++-
 fs/namei.c         | 11 -----------
 include/linux/fs.h |  1 -
 3 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c
index bd3b65cde282..a4859ae2486f 100644
--- a/fs/afs/mntpt.c
+++ b/fs/afs/mntpt.c
@@ -31,9 +31,20 @@ const struct file_operations afs_mntpt_file_operations = {
 	.llseek		= noop_llseek,
 };
 
+static int afs_mntpt_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;
+}
+
 const struct inode_operations afs_mntpt_inode_operations = {
 	.lookup		= afs_mntpt_lookup,
-	.readlink	= page_readlink,
+	.readlink	= afs_mntpt_readlink,
 	.getattr	= afs_getattr,
 };
 
diff --git a/fs/namei.c b/fs/namei.c
index 9a7f8bd748d8..c5272b117029 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -4746,17 +4746,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 5d62d2c47939..8f104dcfca60 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2897,7 +2897,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.11.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] fs: remove page_readlink
  2017-05-09 13:08 [PATCH] fs: remove page_readlink Christoph Hellwig
@ 2017-05-09 13:17 ` Jeffrey Altman
  2017-05-09 13:18   ` Jeffrey Altman
  2017-05-09 13:31   ` Christoph Hellwig
  2017-05-11  3:24 ` kbuild test robot
  2017-05-15 12:59 ` David Howells
  2 siblings, 2 replies; 6+ messages in thread
From: Jeffrey Altman @ 2017-05-09 13:17 UTC (permalink / raw)
  To: Christoph Hellwig, viro; +Cc: dhowells, linux-afs, linux-fsdevel


[-- Attachment #1.1: Type: text/plain, Size: 248 bytes --]

On 5/9/2017 9:08 AM, Christoph Hellwig wrote:
> Opencode it in AFS, the only user instead.
> 

Christopher,

page_readlink() is used by out of tree filesystems as well as "kafs".
Please do not remove it.

Thank you.

Jeffrey Altman



[-- Attachment #1.2: jaltman.vcf --]
[-- Type: text/x-vcard, Size: 410 bytes --]

begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:AuriStor, Inc.
adr:Suite 6B;;255 West 94Th Street;New York;New York;10025-6985;United States
email;internet:jaltman@auristor.com
title:Founder and CEO
tel;work:+1-212-769-9018
note;quoted-printable:LinkedIn: https://www.linkedin.com/in/jeffreyaltman=0D=0A=
	Skype: jeffrey.e.altman=0D=0A=
	
url:https://www.auristor.com/
version:2.1
end:vcard


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4057 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fs: remove page_readlink
  2017-05-09 13:17 ` Jeffrey Altman
@ 2017-05-09 13:18   ` Jeffrey Altman
  2017-05-09 13:31   ` Christoph Hellwig
  1 sibling, 0 replies; 6+ messages in thread
From: Jeffrey Altman @ 2017-05-09 13:18 UTC (permalink / raw)
  To: Christoph Hellwig, viro; +Cc: dhowells, linux-afs, linux-fsdevel


[-- Attachment #1.1: Type: text/plain, Size: 236 bytes --]

On 5/9/2017 9:17 AM, Jeffrey Altman wrote:
> On 5/9/2017 9:08 AM, Christoph Hellwig wrote:
>> Opencode it in AFS, the only user instead.
>>
> 
> Christopher,

Christoph, my apologies for mistyping your name.

Jeffrey Altman


[-- Attachment #1.2: jaltman.vcf --]
[-- Type: text/x-vcard, Size: 410 bytes --]

begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:AuriStor, Inc.
adr:Suite 6B;;255 West 94Th Street;New York;New York;10025-6985;United States
email;internet:jaltman@auristor.com
title:Founder and CEO
tel;work:+1-212-769-9018
note;quoted-printable:LinkedIn: https://www.linkedin.com/in/jeffreyaltman=0D=0A=
	Skype: jeffrey.e.altman=0D=0A=
	
url:https://www.auristor.com/
version:2.1
end:vcard


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4057 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fs: remove page_readlink
  2017-05-09 13:17 ` Jeffrey Altman
  2017-05-09 13:18   ` Jeffrey Altman
@ 2017-05-09 13:31   ` Christoph Hellwig
  1 sibling, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2017-05-09 13:31 UTC (permalink / raw)
  To: Jeffrey Altman
  Cc: Christoph Hellwig, viro, dhowells, linux-afs, linux-fsdevel

On Tue, May 09, 2017 at 09:17:09AM -0400, Jeffrey Altman wrote:
> On 5/9/2017 9:08 AM, Christoph Hellwig wrote:
> > Opencode it in AFS, the only user instead.
> > 
> 
> Christopher,
> 
> page_readlink() is used by out of tree filesystems as well as "kafs".

Which does not matter at all.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fs: remove page_readlink
  2017-05-09 13:08 [PATCH] fs: remove page_readlink Christoph Hellwig
  2017-05-09 13:17 ` Jeffrey Altman
@ 2017-05-11  3:24 ` kbuild test robot
  2017-05-15 12:59 ` David Howells
  2 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2017-05-11  3:24 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kbuild-all, viro, dhowells, linux-afs, linux-fsdevel

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

Hi Christoph,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.11 next-20170510]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Christoph-Hellwig/fs-remove-page_readlink/20170511-062855
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> ERROR: "readlink_copy" [fs/afs/kafs.ko] undefined!

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60080 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] fs: remove page_readlink
  2017-05-09 13:08 [PATCH] fs: remove page_readlink Christoph Hellwig
  2017-05-09 13:17 ` Jeffrey Altman
  2017-05-11  3:24 ` kbuild test robot
@ 2017-05-15 12:59 ` David Howells
  2 siblings, 0 replies; 6+ messages in thread
From: David Howells @ 2017-05-15 12:59 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: dhowells, viro, linux-afs, linux-fsdevel

Christoph Hellwig <hch@lst.de> wrote:

> Opencode it in AFS, the only user instead.

readlink_copy() isn't exported.

David

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-15 12:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 13:08 [PATCH] fs: remove page_readlink Christoph Hellwig
2017-05-09 13:17 ` Jeffrey Altman
2017-05-09 13:18   ` Jeffrey Altman
2017-05-09 13:31   ` Christoph Hellwig
2017-05-11  3:24 ` kbuild test robot
2017-05-15 12:59 ` David Howells

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.