Whamcloud - gitweb
LU-2800 autoconf: remove obsolete autoconf options
[fs/lustre-release.git] / lustre / llite / rw26.c
index 2d10dd5..a90b9dd 100644 (file)
@@ -503,7 +503,6 @@ out:
        RETURN(tot_bytes ? : result);
 }
 
-#if defined(HAVE_KERNEL_WRITE_BEGIN_END) || defined(MS_HAS_NEW_AOPS)
 static int ll_write_begin(struct file *file, struct address_space *mapping,
                          loff_t pos, unsigned len, unsigned flags,
                          struct page **pagep, void **fsdata)
@@ -541,7 +540,6 @@ static int ll_write_end(struct file *file, struct address_space *mapping,
 
         return rc ?: copied;
 }
-#endif
 
 #ifdef CONFIG_MIGRATION
 int ll_migratepage(struct address_space *mapping,
@@ -564,13 +562,8 @@ struct address_space_operations ll_aops = {
         .writepage      = ll_writepage,
        .writepages     = ll_writepages,
         .set_page_dirty = ll_set_page_dirty,
-#ifdef HAVE_KERNEL_WRITE_BEGIN_END
         .write_begin    = ll_write_begin,
         .write_end      = ll_write_end,
-#else
-        .prepare_write  = ll_prepare_write,
-        .commit_write   = ll_commit_write,
-#endif
         .invalidatepage = ll_invalidatepage,
         .releasepage    = (void *)ll_releasepage,
 #ifdef CONFIG_MIGRATION