git: sys/vfs/hammer: Add hammer_is_pfs_{master|slave|deleted}()
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Feb 27 08:44:43 PST 2016
commit 2bacc08883eab1ae8a0d3e010a0fe6d00f10fe7f
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Fri Feb 26 04:09:23 2016 +0900
sys/vfs/hammer: Add hammer_is_pfs_{master|slave|deleted}()
Makes code more readable, but introducing these macros could
make |= and &=~ unclear by hiding &.
There are a few |= and &=~ but not many.
Summary of changes:
lib/libhammer/info.c | 6 ++----
sbin/hammer/cmd_cleanup.c | 2 +-
sbin/hammer/cmd_mirror.c | 3 +--
sbin/hammer/cmd_pfs.c | 12 ++++++------
sys/vfs/hammer/hammer_disk.h | 7 +++++++
sys/vfs/hammer/hammer_inode.c | 3 +--
sys/vfs/hammer/hammer_pfs.c | 11 +++++------
sys/vfs/hammer/hammer_vnops.c | 11 +++++------
8 files changed, 28 insertions(+), 27 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2bacc08883eab1ae8a0d3e010a0fe6d00f10fe7f
--
DragonFly BSD source repository
More information about the Commits
mailing list