git: sbin/hammer: Remove unused READAHEAD flag

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat May 2 02:21:13 PDT 2015


commit 08200f273c231ef0228aa1686100740fc9a30d2c
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat May 2 02:17:04 2015 +0900

    sbin/hammer: Remove unused READAHEAD flag
    
    - Cleanup get_buffer() by removing HAMMER_BUFINFO_READAHEAD since
      this flag does nothing, but taking care of negative 'isnew' for
      this flag makes things look complicated than it should.
    
    - For the else case, 'if (isnew >= 0)' is not necessary because it's
      always true from the way get_buffer() is recursively called via
      get_buffer_readahead() via get_buffer().

Summary of changes:
 sbin/hammer/hammer_util.h |  2 --
 sbin/hammer/ondisk.c      | 10 +++-------
 2 files changed, 3 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/08200f273c231ef0228aa1686100740fc9a30d2c


-- 
DragonFly BSD source repository



More information about the Commits mailing list