staging/lustre: Get rid of inode_dio_write_done and inode_dio_read
[firefly-linux-kernel-4.4.55.git] / drivers / staging / lustre / lustre / include / linux / lustre_compat25.h
index f16ba9c8b2143cfeaf7db9b4b1f5ad31bfa06058..6b14406b2920daa640b68f6b80f01cba0fa68aa8 100644 (file)
 
 #define LTIME_S(time)             (time.tv_sec)
 
-/* inode_dio_wait(i) use as-is for write lock */
-# define inode_dio_write_done(i)       do {} while (0) /* for write unlock */
-# define inode_dio_read(i)             atomic_inc(&(i)->i_dio_count)
-/* inode_dio_done(i) use as-is for read unlock */
-
-static inline int
-ll_quota_on(struct super_block *sb, int off, int ver, char *name, int remount)
-{
-       int rc;
-
-       if (sb->s_qcop->quota_on) {
-               struct path path;
-
-               rc = kern_path(name, LOOKUP_FOLLOW, &path);
-               if (!rc)
-                       return rc;
-               rc = sb->s_qcop->quota_on(sb, off, ver
-                                           , &path
-                                          );
-               path_put(&path);
-               return rc;
-       } else
-               return -ENOSYS;
-}
-
-static inline int ll_quota_off(struct super_block *sb, int off, int remount)
-{
-       if (sb->s_qcop->quota_off) {
-               return sb->s_qcop->quota_off(sb, off
-                                           );
-       } else
-               return -ENOSYS;
-}
-
-
-
-#define ll_d_hlist_node hlist_node
-#define ll_d_hlist_empty(list) hlist_empty(list)
-#define ll_d_hlist_entry(ptr, type, name) hlist_entry(ptr.first, type, name)
-#define ll_d_hlist_for_each(tmp, i_dentry) hlist_for_each(tmp, i_dentry)
-#define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \
-       p = NULL; hlist_for_each_entry(dentry, i_dentry, alias)
-
-
-
-#define ll_pagevec_init(pv, cold)       do {} while (0)
-#define ll_pagevec_add(pv, pg)   (0)
-#define ll_pagevec_lru_add_file(pv)     do {} while (0)
-
-
 #ifndef QUOTA_OK
 # define QUOTA_OK 0
 #endif
@@ -121,17 +71,6 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
 # define NO_QUOTA (-EDQUOT)
 #endif
 
-#ifndef SEEK_DATA
-#define SEEK_DATA      3       /* seek to the next data */
-#endif
-#ifndef SEEK_HOLE
-#define SEEK_HOLE      4       /* seek to the next hole */
-#endif
-
-#ifndef FMODE_UNSIGNED_OFFSET
-#define FMODE_UNSIGNED_OFFSET  ((__force fmode_t)0x2000)
-#endif
-
 #if !defined(_ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_) && !defined(ext2_set_bit)
 # define ext2_set_bit       __test_and_set_bit_le
 # define ext2_clear_bit           __test_and_clear_bit_le