Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Remove the 'cred' argument from bio_doread().



details:   https://anonhg.NetBSD.org/src/rev/b1367a6028b0
branches:  trunk
changeset: 336965:b1367a6028b0
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Mar 28 16:55:21 2015 +0000

description:
Remove the 'cred' argument from bio_doread().

diffstat:

 sys/kern/vfs_bio.c |  16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diffs (65 lines):

diff -r 36cd0f75b131 -r b1367a6028b0 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Sat Mar 28 16:39:31 2015 +0000
+++ b/sys/kern/vfs_bio.c        Sat Mar 28 16:55:21 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.252 2014/09/08 22:01:24 joerg Exp $      */
+/*     $NetBSD: vfs_bio.c,v 1.253 2015/03/28 16:55:21 maxv Exp $       */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.252 2014/09/08 22:01:24 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.253 2015/03/28 16:55:21 maxv Exp $");
 
 #include "opt_bufcache.h"
 
@@ -172,8 +172,7 @@
 static int buf_trim(void);
 static void *bufpool_page_alloc(struct pool *, int);
 static void bufpool_page_free(struct pool *, void *);
-static buf_t *bio_doread(struct vnode *, daddr_t, int,
-    kauth_cred_t, int);
+static buf_t *bio_doread(struct vnode *, daddr_t, int, int);
 static buf_t *getnewbuf(int, int, int);
 static int buf_lotsfree(void);
 static int buf_canrelease(void);
@@ -659,8 +658,7 @@
  * bread()/breadn() helper.
  */
 static buf_t *
-bio_doread(struct vnode *vp, daddr_t blkno, int size, kauth_cred_t cred,
-    int async)
+bio_doread(struct vnode *vp, daddr_t blkno, int size, int async)
 {
        buf_t *bp;
        struct mount *mp;
@@ -726,7 +724,7 @@
        int error;
 
        /* Get buffer for block. */
-       bp = *bpp = bio_doread(vp, blkno, size, cred, 0);
+       bp = *bpp = bio_doread(vp, blkno, size, 0);
        if (bp == NULL)
                return ENOMEM;
 
@@ -753,7 +751,7 @@
        buf_t *bp;
        int error, i;
 
-       bp = *bpp = bio_doread(vp, blkno, size, cred, 0);
+       bp = *bpp = bio_doread(vp, blkno, size, 0);
        if (bp == NULL)
                return ENOMEM;
 
@@ -768,7 +766,7 @@
 
                /* Get a buffer for the read-ahead block */
                mutex_exit(&bufcache_lock);
-               (void) bio_doread(vp, rablks[i], rasizes[i], cred, B_ASYNC);
+               (void) bio_doread(vp, rablks[i], rasizes[i], B_ASYNC);
                mutex_enter(&bufcache_lock);
        }
        mutex_exit(&bufcache_lock);



Home | Main Index | Thread Index | Old Index