summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre/include
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2013-06-03 13:58:17 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-03 18:32:50 (GMT)
commit7d5ed06b2bbbfcdd6bff37b2acaed513462789f3 (patch)
tree4f337d052be7b87c51f162a536955a7ac3705f27 /drivers/staging/lustre/include
parent69d193889d0b14bce33b59399c00beacd26f93ae (diff)
downloadlinux-fsl-qoriq-7d5ed06b2bbbfcdd6bff37b2acaed513462789f3.tar.xz
staging/lustre: clean up and remove libcfs/linux/linux-fs.c
filp_user_write() is open coded in libcfs_kkuc_msg_put(). All other functions/macros have no user at all. So we can remove the file. Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include')
-rw-r--r--drivers/staging/lustre/include/linux/libcfs/libcfs.h29
-rw-r--r--drivers/staging/lustre/include/linux/libcfs/linux/linux-fs.h3
2 files changed, 0 insertions, 32 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h
index 6dd5a7d..7673aa5 100644
--- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h
+++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h
@@ -213,35 +213,6 @@ void cfs_stack_trace_fill(struct cfs_stack_trace *trace);
*/
void *cfs_stack_trace_frame(struct cfs_stack_trace *trace, int frame_no);
-#ifndef O_NOACCESS
-#define O_NOACCESS O_NONBLOCK
-#endif
-
-/*
- * Universal open flags.
- */
-#define CFS_O_NOACCESS 0003
-#define CFS_O_ACCMODE CFS_O_NOACCESS
-#define CFS_O_CREAT 0100
-#define CFS_O_EXCL 0200
-#define CFS_O_NOCTTY 0400
-#define CFS_O_TRUNC 01000
-#define CFS_O_APPEND 02000
-#define CFS_O_NONBLOCK 04000
-#define CFS_O_NDELAY CFS_O_NONBLOCK
-#define CFS_O_SYNC 010000
-#define CFS_O_ASYNC 020000
-#define CFS_O_DIRECT 040000
-#define CFS_O_LARGEFILE 0100000
-#define CFS_O_DIRECTORY 0200000
-#define CFS_O_NOFOLLOW 0400000
-#define CFS_O_NOATIME 01000000
-
-/* convert local open flags to universal open flags */
-int cfs_oflags2univ(int flags);
-/* convert universal open flags to local open flags */
-int cfs_univ2oflags(int flags);
-
/*
* Random number handling
*/
diff --git a/drivers/staging/lustre/include/linux/libcfs/linux/linux-fs.h b/drivers/staging/lustre/include/linux/libcfs/linux/linux-fs.h
index 90ff47a..eebf138 100644
--- a/drivers/staging/lustre/include/linux/libcfs/linux/linux-fs.h
+++ b/drivers/staging/lustre/include/linux/libcfs/linux/linux-fs.h
@@ -78,9 +78,6 @@
#define flock_end(fl) ((fl)->fl_end)
#define flock_set_end(fl, end) do { (fl)->fl_end = (end); } while (0)
-ssize_t filp_user_write(struct file *filp, const void *buf, size_t count,
- loff_t *offset);
-
#ifndef IFSHIFT
#define IFSHIFT 12
#endif