Whamcloud - gitweb
LU-1421 clio: check cp_owner of cl_page after the page is owned
[fs/lustre-release.git] / lustre / lvfs / lustre_quota_fmt.c
index cb4d42d..d7fafaa 100644 (file)
@@ -1,6 +1,4 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
  * GPL HEADER START
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  * from linux/fs/quota_v2.c
  */
 
-#ifndef EXPORT_SYMTAB
-# define EXPORT_SYMTAB
-#endif
-
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
@@ -121,6 +115,7 @@ int lustre_check_quota_file(struct lustre_quota_info *lqi, int type)
         struct file *f = lqi->qi_files[type];
         return check_quota_file(f, NULL, type, lqi->qi_version);
 }
+EXPORT_SYMBOL(lustre_check_quota_file);
 
 int lustre_read_quota_file_info(struct file* f, struct lustre_mem_dqinfo* info)
 {
@@ -153,6 +148,7 @@ int lustre_read_quota_info(struct lustre_quota_info *lqi, int type)
         return lustre_read_quota_file_info(lqi->qi_files[type],
                                            &lqi->qi_info[type]);
 }
+EXPORT_SYMBOL(lustre_read_quota_info);
 
 /**
  * Write information header to quota file
@@ -177,13 +173,14 @@ int lustre_write_quota_info(struct lustre_quota_info *lqi, int type)
                                   LUSTRE_DQINFOOFF);
 
         if (size != sizeof(struct lustre_disk_dqinfo)) {
-                CDEBUG(D_WARNING, 
+                CDEBUG(D_WARNING,
                        "Can't write info structure on device %s.\n",
                        f->f_vfsmnt->mnt_sb->s_id);
                 return -1;
         }
         return 0;
 }
+EXPORT_SYMBOL(lustre_write_quota_info);
 
 void disk2memdqb(struct lustre_mem_dqblk *m, void *d,
                  lustre_quota_version_t version)
@@ -799,7 +796,7 @@ out_buf:
 /**
  * Find entry for given id in the tree - wrapper function
  */
-static inline loff_t find_dqentry(struct lustre_dquot *dquot, 
+static inline loff_t find_dqentry(struct lustre_dquot *dquot,
                                   lustre_quota_version_t version)
 {
         return find_tree_dqentry(dquot, LUSTRE_DQTREEOFF, 0, version);
@@ -857,6 +854,7 @@ int lustre_read_dquot(struct lustre_dquot *dquot)
 
         return ret;
 }
+EXPORT_SYMBOL(lustre_read_dquot);
 
 /**
  * Commit changes of dquot to disk - it might also mean deleting
@@ -899,6 +897,7 @@ int lustre_commit_dquot(struct lustre_dquot *dquot)
 
         return rc;
 }
+EXPORT_SYMBOL(lustre_commit_dquot);
 
 int lustre_init_quota_header(struct lustre_quota_info *lqi, int type,
                              int fakemagics)
@@ -953,6 +952,7 @@ int lustre_init_quota_info(struct lustre_quota_info *lqi, int type)
 {
         return lustre_init_quota_info_generic(lqi, type, 0);
 }
+EXPORT_SYMBOL(lustre_init_quota_info);
 
 static int walk_block_dqentry(struct file *filp, struct inode *inode, int type,
                               uint blk, cfs_list_t *list)
@@ -1123,13 +1123,5 @@ out_free:
 
         RETURN(rc);
 }
-
-
-EXPORT_SYMBOL(lustre_read_quota_info);
-EXPORT_SYMBOL(lustre_write_quota_info);
-EXPORT_SYMBOL(lustre_check_quota_file);
-EXPORT_SYMBOL(lustre_read_dquot);
-EXPORT_SYMBOL(lustre_commit_dquot);
-EXPORT_SYMBOL(lustre_init_quota_info);
 EXPORT_SYMBOL(lustre_get_qids);
 #endif