Module Name:    src
Committed By:   joerg
Date:           Fri Sep 13 20:15:33 UTC 2013

Modified Files:
        src/sys/ufs/ffs: ffs_snapshot.c

Log Message:
Kill unused function ib_assign.


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/ufs/ffs/ffs_snapshot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/ffs/ffs_snapshot.c
diff -u src/sys/ufs/ffs/ffs_snapshot.c:1.127 src/sys/ufs/ffs/ffs_snapshot.c:1.128
--- src/sys/ufs/ffs/ffs_snapshot.c:1.127	Sun Jun 23 22:03:34 2013
+++ src/sys/ufs/ffs/ffs_snapshot.c	Fri Sep 13 20:15:33 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ffs_snapshot.c,v 1.127 2013/06/23 22:03:34 dholland Exp $	*/
+/*	$NetBSD: ffs_snapshot.c,v 1.128 2013/09/13 20:15:33 joerg 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.127 2013/06/23 22:03:34 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.128 2013/09/13 20:15:33 joerg Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -124,7 +124,6 @@ static inline bool is_active_snapshot(st
 static inline daddr_t db_get(struct inode *, int);
 static inline void db_assign(struct inode *, int, daddr_t);
 static inline daddr_t ib_get(struct inode *, int);
-static inline void ib_assign(struct inode *, int, daddr_t);
 static inline daddr_t idb_get(struct inode *, void *, int);
 static inline void idb_assign(struct inode *, void *, int, daddr_t);
 
@@ -2307,15 +2306,6 @@ ib_get(struct inode *ip, int loc)
 		return ufs_rw64(ip->i_ffs2_ib[loc], UFS_IPNEEDSWAP(ip));
 }
 
-static inline void
-ib_assign(struct inode *ip, int loc, daddr_t val)
-{
-	if (ip->i_ump->um_fstype == UFS1)
-		ip->i_ffs1_ib[loc] = ufs_rw32(val, UFS_IPNEEDSWAP(ip));
-	else
-		ip->i_ffs2_ib[loc] = ufs_rw64(val, UFS_IPNEEDSWAP(ip));
-}
-
 static inline daddr_t
 idb_get(struct inode *ip, void *bf, int loc)
 {

Reply via email to