X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=66d5256b40605a3f52d614765bb27abc0cd7e40a;hb=e6c7fcdaf40b130c39af2e3ee8b108c6e31a8ca8;hp=acfb007261860ca2f7ca6d4c03fdf684098599d1;hpb=0844727c55d52ec24f6cfb7fa043755a6635949c;p=fs%2Flustre-release.git diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index acfb007..66d5256 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -461,6 +461,21 @@ get_projid, [ ]) ]) # LC_HAVE_PROJECT_QUOTA +AC_DEFUN([LC_HAVE_GET_INODE_USAGE], [ +LB_CHECK_COMPILE([if get_inode_usage exists], +get_inode_usage, [ + struct inode; + #include +],[ + struct dquot_operations ops = { }; + + ops.get_inode_usage(NULL, NULL); +],[ + AC_DEFINE(HAVE_GET_INODE_USAGE, 1, + [get_inode_usage function exists]) +]) +]) # LC_HAVE_GET_INODE_USAGE + # # LC_INVALIDATE_RANGE # @@ -2568,6 +2583,7 @@ AC_DEFUN([LC_PROG_LINUX], [ # 4.13 LC_BIO_INTEGRITY_ENABLED + LC_HAVE_GET_INODE_USAGE # 4.14 LC_PAGEVEC_INIT_ONE_PARAM