Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1596334

[PATCH 07/27] afs: Kill struct afs_read::pg_offset

Path csiph.com!goblin3!goblin.stu.neva.ru!news.neodome.net!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From David Howells <dhowells@redhat.com>
Newsgroups linux.kernel
Subject [PATCH 07/27] afs: Kill struct afs_read::pg_offset
Date Thu, 09 Mar 2017 20:00:04 +0100
Message-ID <tjbs8-I0-59@gated-at.bofh.it> (permalink)
References <tjbs6-I0-7@gated-at.bofh.it>
Organization Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903
User-Agent StGit/0.17.1-dirty
MIME-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding 7bit
X-Scanned-By MIMEDefang 2.68 on 10.5.11.23
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 09 Mar 2017 18:56:38 +0000 (UTC)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 21
X-Original-Cc dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org
X-Original-Date Thu, 09 Mar 2017 18:56:34 +0000
X-Original-Message-ID <148908579491.16794.4084734498214196283.stgit@warthog.procyon.org.uk>
X-Original-References <148908574888.16794.14109877851518811944.stgit@warthog.procyon.org.uk>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1596334

Show key headers only | View raw


Kill struct afs_read::pg_offset as nothing uses it.  It's unnecessary as pos
can be masked off.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 fs/afs/internal.h |    1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/afs/internal.h b/fs/afs/internal.h
index 8499870147ef..7784a8bc375c 100644
--- a/fs/afs/internal.h
+++ b/fs/afs/internal.h
@@ -135,7 +135,6 @@ struct afs_read {
 	atomic_t		usage;
 	unsigned int		remain;		/* Amount remaining */
 	unsigned int		index;		/* Which page we're reading into */
-	unsigned int		pg_offset;	/* Offset in page we're at */
 	unsigned int		nr_pages;
 	void (*page_done)(struct afs_call *, struct afs_read *);
 	struct page		*pages[];

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 07/27] afs: Kill struct afs_read::pg_offset David Howells <dhowells@redhat.com> - 2017-03-09 20:00 +0100

csiph-web