X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=8bd7f6bea579dd51343ef65430cf393fdb4e6f6b;hp=45b127eace697a32035e5dd357ba2ac4ba55ea72;hb=f40891396a460b6b73d2ff9ea55629e4065ef349;hpb=51b1da4054704d0e115ddb2c8857c5a84c7ed958 diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 45b127e..8bd7f6b 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2093,6 +2093,24 @@ LB_LINUX_TRY_COMPILE([ ]) # +# 2.6.35 file_operations.fsync taken 2 arguments. +# +AC_DEFUN([LC_FILE_FSYNC], +[AC_MSG_CHECKING([if file_operations.fsync taken 2 arguments]) +LB_LINUX_TRY_COMPILE([ + #include +],[ + ((struct file_operations *)0)->fsync(NULL, 0); +],[ + AC_DEFINE(HAVE_FILE_FSYNC_2ARGS, 1, + [file_operations.fsync taken 2 arguments]) + AC_MSG_RESULT([yes]) +],[ + AC_MSG_RESULT([no]) +]) +]) + +# # 2.6.38 export blkdev_get_by_dev # AC_DEFUN([LC_BLKDEV_GET_BY_DEV], @@ -2317,6 +2335,9 @@ AC_DEFUN([LC_PROG_LINUX], LC_BLK_QUEUE_MAX_SEGMENTS LC_SET_CPUS_ALLOWED + # 2.6.35 + LC_FILE_FSYNC + # 2.6.36 LC_SBOPS_EVICT_INODE