Date: Sat, 21 Apr 2012 17:48:18 +0000 (UTC) From: Grzegorz Bernacki <gber@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r234550 - projects/nand/sys/fs/nandfs Message-ID: <201204211748.q3LHmIDR098271@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gber Date: Sat Apr 21 17:48:17 2012 New Revision: 234550 URL: http://svn.freebsd.org/changeset/base/234550 Log: ndfs: fix braindead comparision in nandfs_invalidate_bufs Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks Modified: projects/nand/sys/fs/nandfs/nandfs_segment.c Modified: projects/nand/sys/fs/nandfs/nandfs_segment.c ============================================================================== --- projects/nand/sys/fs/nandfs/nandfs_segment.c Sat Apr 21 17:45:40 2012 (r234549) +++ projects/nand/sys/fs/nandfs/nandfs_segment.c Sat Apr 21 17:48:17 2012 (r234550) @@ -945,7 +945,7 @@ nandfs_invalidate_bufs(struct nandfs_dev BO_LOCK(bo); restart_locked_gc: TAILQ_FOREACH_SAFE(bp, &bo->bo_clean.bv_hd, b_bobufs, tbd) { - if (!(bp->b_lblkno >= start || bp->b_lblkno <= end)) + if (!(bp->b_lblkno >= start && bp->b_lblkno <= end)) continue; if (BUF_LOCK(bp, LK_EXCLUSIVE | LK_NOWAIT, NULL))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204211748.q3LHmIDR098271>