# Script to cleanup libcfs macros, it runs against the tree at build time.
# Migrate libcfs to emulate Linux kernel APIs.
-# https://jira.hpdd.intel.com/browse/LU-1346
+# https://jira.whamcloud.com/browse/LU-1346
# Run this script like:
# find libcfs lnet lustre -name "*.[ch]" | grep -v gnilnd |
s/\b[cfs_]*flock_end(\([^)]*\))\b/\1->fl_end/g
s/\b[cfs_]*flock_set_end(\([^,]*\), \([^)]*\))\b/\1->fl_end = \2/g
s/\bcfs_user_write\b/user_write/g
-s/\bCFS_IFSHIFT\b/IFSHIFT/g
-s/\bCFS_IFTODT\b/IFTODT/g
-s/\bCFS_DTTOIF\b/DTTOIF/g
################################################################################
# memory operations