From fbedadc16e5c888e4df9df3b1757de4993508d35 Mon Sep 17 00:00:00 2001 From: Eric Van Hensbergen Date: Mon, 13 Oct 2008 20:36:16 -0500 Subject: 9p: move readn meta-function from client to fs layer There are a couple of methods in the client code which aren't actually wire operations. To keep things organized cleaner, these operations are being moved to the fs layer. This patch moves the readn meta-function (which executes multiple wire reads until a buffer is full) to the fs layer. Signed-off-by: Eric Van Hensbergen --- net/9p/client.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'net') diff --git a/net/9p/client.c b/net/9p/client.c index 5fc3aa1eb39..d5ea042eabb 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -1150,32 +1150,6 @@ error: } EXPORT_SYMBOL(p9_client_write); -int p9_client_readn(struct p9_fid *fid, char *data, u64 offset, u32 count) -{ - int n, total; - - P9_DPRINTK(P9_DEBUG_9P, "fid %d offset %llu count %d\n", fid->fid, - (long long unsigned) offset, count); - n = 0; - total = 0; - while (count) { - n = p9_client_read(fid, data, NULL, offset, count); - if (n <= 0) - break; - - data += n; - offset += n; - count -= n; - total += n; - } - - if (n < 0) - total = n; - - return total; -} -EXPORT_SYMBOL(p9_client_readn); - static struct p9_stat *p9_clone_stat(struct p9_stat *st, int dotu) { int n; -- cgit v1.2.3-70-g09d2