Source-Changes-HG archive

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

[src/trunk]: src Remove the 'cred' argument from breadn(), and update the man...



details:   https://anonhg.NetBSD.org/src/rev/2cea940b1b82
branches:  trunk
changeset: 336970:2cea940b1b82
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Mar 28 17:23:42 2015 +0000

description:
Remove the 'cred' argument from breadn(), and update the man page
accordingly.

ok hannken@

diffstat:

 share/man/man9/buffercache.9      |  8 ++++----
 sys/fs/cd9660/cd9660_vnops.c      |  6 +++---
 sys/kern/vfs_bio.c                |  6 +++---
 sys/sys/buf.h                     |  4 ++--
 sys/ufs/chfs/chfs_vnops.c         |  4 ++--
 sys/ufs/ext2fs/ext2fs_readwrite.c |  6 +++---
 sys/ufs/ffs/ffs_snapshot.c        |  6 +++---
 sys/ufs/lfs/ulfs_lookup.c         |  6 +++---
 sys/ufs/lfs/ulfs_readwrite.c      |  6 +++---
 sys/ufs/ufs/ufs_lookup.c          |  6 +++---
 sys/ufs/ufs/ufs_readwrite.c       |  6 +++---
 11 files changed, 32 insertions(+), 32 deletions(-)

diffs (288 lines):

diff -r a0133e23a3ff -r 2cea940b1b82 share/man/man9/buffercache.9
--- a/share/man/man9/buffercache.9      Sat Mar 28 17:22:46 2015 +0000
+++ b/share/man/man9/buffercache.9      Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: buffercache.9,v 1.25 2010/12/02 12:54:13 wiz Exp $
+.\"     $NetBSD: buffercache.9,v 1.26 2015/03/28 17:23:42 maxv Exp $
 .\"
 .\" Copyright (c)2003 YAMAMOTO Takashi,
 .\" All rights reserved.
@@ -101,7 +101,7 @@
 .\"
 .\"
 .\" ------------------------------------------------------------
-.Dd November 11, 2009
+.Dd March 28, 2015
 .Dt BUFFERCACHE 9
 .Os
 .Sh NAME
@@ -128,7 +128,7 @@
 .Ft int
 .Fn breadn "struct vnode *vp" "daddr_t blkno" "int size" \
 "daddr_t rablks[]" "int rasizes[]" "int nrablks" \
-"struct kauth_cred *cred" "int flags" "buf_t **bpp"
+"int flags" "buf_t **bpp"
 .Ft int
 .Fn bwrite "buf_t *bp"
 .Ft void
@@ -220,7 +220,7 @@
 Otherwise, it should be unbusied using
 .Fn brelse .
 .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-.It Fn breadn "vp" "blkno" "size" "rablks" "rasizes" "nrablks" "cred" "flags" \
+.It Fn breadn "vp" "blkno" "size" "rablks" "rasizes" "nrablks" "flags" \
 "bpp"
 Get a buffer as
 .Fn bread .
diff -r a0133e23a3ff -r 2cea940b1b82 sys/fs/cd9660/cd9660_vnops.c
--- a/sys/fs/cd9660/cd9660_vnops.c      Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/fs/cd9660/cd9660_vnops.c      Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660_vnops.c,v 1.49 2014/07/25 08:20:51 dholland Exp $       */
+/*     $NetBSD: cd9660_vnops.c,v 1.50 2015/03/28 17:23:42 maxv Exp $   */
 
 /*-
  * Copyright (c) 1994
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.49 2014/07/25 08:20:51 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.50 2015/03/28 17:23:42 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -262,7 +262,7 @@
                if (cd9660_lblktosize(imp, rablock) < ip->i_size) {
                        rasize = cd9660_blksize(imp, ip, rablock);
                        error = breadn(vp, lbn, size, &rablock,
-                                      &rasize, 1, NOCRED, 0, &bp);
+                                      &rasize, 1, 0, &bp);
                } else {
                        error = bread(vp, lbn, size, NOCRED, 0, &bp);
                }
diff -r a0133e23a3ff -r 2cea940b1b82 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/kern/vfs_bio.c        Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.253 2015/03/28 16:55:21 maxv Exp $       */
+/*     $NetBSD: vfs_bio.c,v 1.254 2015/03/28 17:23:42 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.253 2015/03/28 16:55:21 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.254 2015/03/28 17:23:42 maxv Exp $");
 
 #include "opt_bufcache.h"
 
@@ -746,7 +746,7 @@
  */
 int
 breadn(struct vnode *vp, daddr_t blkno, int size, daddr_t *rablks,
-    int *rasizes, int nrablks, kauth_cred_t cred, int flags, buf_t **bpp)
+    int *rasizes, int nrablks, int flags, buf_t **bpp)
 {
        buf_t *bp;
        int error, i;
diff -r a0133e23a3ff -r 2cea940b1b82 sys/sys/buf.h
--- a/sys/sys/buf.h     Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/sys/buf.h     Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.h,v 1.119 2012/02/17 08:45:11 yamt Exp $ */
+/*     $NetBSD: buf.h,v 1.120 2015/03/28 17:23:43 maxv Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2007, 2008 The NetBSD Foundation, Inc.
@@ -269,7 +269,7 @@
 int    biowait(buf_t *);
 int    bread(struct vnode *, daddr_t, int, struct kauth_cred *, int, buf_t **);
 int    breadn(struct vnode *, daddr_t, int, daddr_t *, int *, int,
-              struct kauth_cred *, int, buf_t **);
+              int, buf_t **);
 void   brelsel(buf_t *, int);
 void   brelse(buf_t *, int);
 void   bremfree(buf_t *);
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/chfs/chfs_vnops.c
--- a/sys/ufs/chfs/chfs_vnops.c Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/chfs/chfs_vnops.c Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_vnops.c,v 1.25 2015/03/27 17:27:55 riastradh Exp $        */
+/*     $NetBSD: chfs_vnops.c,v 1.26 2015/03/28 17:23:42 maxv Exp $     */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -700,7 +700,7 @@
                        int nextsize = chfs_blksize(chmp, ip, nextlbn);
                        dbg("size: %ld\n", size);
                        error = breadn(vp, lbn,
-                           size, &nextlbn, &nextsize, 1, NOCRED, 0, &bp);
+                           size, &nextlbn, &nextsize, 1, 0, &bp);
                        dbg("after breadN\n");
                }
                if (error)
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/ext2fs/ext2fs_readwrite.c
--- a/sys/ufs/ext2fs/ext2fs_readwrite.c Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/ext2fs/ext2fs_readwrite.c Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_readwrite.c,v 1.71 2015/03/28 17:06:15 riastradh Exp $  */
+/*     $NetBSD: ext2fs_readwrite.c,v 1.72 2015/03/28 17:23:42 maxv Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_readwrite.c,v 1.71 2015/03/28 17:06:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_readwrite.c,v 1.72 2015/03/28 17:23:42 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -200,7 +200,7 @@
                else {
                        int nextsize = fs->e2fs_bsize;
                        error = breadn(vp, lbn,
-                               size, &nextlbn, &nextsize, 1, NOCRED, 0, &bp);
+                               size, &nextlbn, &nextsize, 1, 0, &bp);
                }
                if (error)
                        break;
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/ffs/ffs_snapshot.c
--- a/sys/ufs/ffs/ffs_snapshot.c        Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/ffs/ffs_snapshot.c        Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_snapshot.c,v 1.137 2014/09/05 06:10:07 matt Exp $  */
+/*     $NetBSD: ffs_snapshot.c,v 1.138 2015/03/28 17:23:42 maxv Exp $  */
 
 /*
  * Copyright 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.137 2014/09/05 06:10:07 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.138 2015/03/28 17:23:42 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -2098,7 +2098,7 @@
                } else {
                        int nextsize = fs->fs_bsize;
                        error = breadn(vp, lbn,
-                           size, &nextlbn, &nextsize, 1, NOCRED, 0, &bp);
+                           size, &nextlbn, &nextsize, 1, 0, &bp);
                }
                if (error)
                        break;
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/lfs/ulfs_lookup.c
--- a/sys/ufs/lfs/ulfs_lookup.c Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/lfs/ulfs_lookup.c Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulfs_lookup.c,v 1.22 2015/03/27 17:27:56 riastradh Exp $       */
+/*     $NetBSD: ulfs_lookup.c,v 1.23 2015/03/28 17:23:42 maxv Exp $    */
 /*  from NetBSD: ufs_lookup.c,v 1.122 2013/01/22 09:39:18 dholland Exp  */
 
 /*
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulfs_lookup.c,v 1.22 2015/03/27 17:27:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulfs_lookup.c,v 1.23 2015/03/28 17:23:42 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lfs.h"
@@ -1313,7 +1313,7 @@
        }
        KASSERT(run >= 1);
        error = breadn(vp, blks[0], blksizes[0], &blks[1], &blksizes[1],
-           run - 1, NOCRED, (modify ? B_MODIFY : 0), &bp);
+           run - 1, (modify ? B_MODIFY : 0), &bp);
        if (error != 0) {
                *bpp = NULL;
                goto out;
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/lfs/ulfs_readwrite.c
--- a/sys/ufs/lfs/ulfs_readwrite.c      Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/lfs/ulfs_readwrite.c      Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulfs_readwrite.c,v 1.12 2015/03/28 17:08:53 riastradh Exp $    */
+/*     $NetBSD: ulfs_readwrite.c,v 1.13 2015/03/28 17:23:42 maxv Exp $ */
 /*  from NetBSD: ufs_readwrite.c,v 1.105 2013/01/22 09:39:18 dholland Exp  */
 
 /*-
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: ulfs_readwrite.c,v 1.12 2015/03/28 17:08:53 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ulfs_readwrite.c,v 1.13 2015/03/28 17:23:42 maxv Exp $");
 
 #ifdef LFS_READWRITE
 #define        FS                      struct lfs
@@ -194,7 +194,7 @@
                else {
                        int nextsize = lfs_blksize(fs, ip, nextlbn);
                        error = breadn(vp, lbn,
-                           size, &nextlbn, &nextsize, 1, NOCRED, 0, &bp);
+                           size, &nextlbn, &nextsize, 1, 0, &bp);
                }
                if (error)
                        break;
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/ufs/ufs_lookup.c
--- a/sys/ufs/ufs/ufs_lookup.c  Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/ufs/ufs_lookup.c  Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_lookup.c,v 1.133 2015/03/27 17:27:56 riastradh Exp $       */
+/*     $NetBSD: ufs_lookup.c,v 1.134 2015/03/28 17:23:42 maxv Exp $    */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.133 2015/03/27 17:27:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.134 2015/03/28 17:23:42 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ffs.h"
@@ -1279,7 +1279,7 @@
        }
        KASSERT(run >= 1);
        error = breadn(vp, blks[0], blksizes[0], &blks[1], &blksizes[1],
-           run - 1, NOCRED, (modify ? B_MODIFY : 0), &bp);
+           run - 1, (modify ? B_MODIFY : 0), &bp);
        if (error != 0) {
                *bpp = NULL;
                goto out;
diff -r a0133e23a3ff -r 2cea940b1b82 sys/ufs/ufs/ufs_readwrite.c
--- a/sys/ufs/ufs/ufs_readwrite.c       Sat Mar 28 17:22:46 2015 +0000
+++ b/sys/ufs/ufs/ufs_readwrite.c       Sat Mar 28 17:23:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_readwrite.c,v 1.112 2015/03/28 17:06:15 riastradh Exp $    */
+/*     $NetBSD: ufs_readwrite.c,v 1.113 2015/03/28 17:23:42 maxv Exp $ */
 
 /*-
  * Copyright (c) 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.112 2015/03/28 17:06:15 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.113 2015/03/28 17:23:42 maxv Exp $");
 
 #ifdef LFS_READWRITE
 #define        FS                      struct lfs
@@ -205,7 +205,7 @@
                else {
                        int nextsize = ufs_blksize(fs, ip, nextlbn);
                        error = breadn(vp, lbn,
-                           size, &nextlbn, &nextsize, 1, NOCRED, 0, &bp);
+                           size, &nextlbn, &nextsize, 1, 0, &bp);
                }
                if (error)
                        break;



Home | Main Index | Thread Index | Old Index