Commit 85dc7878c6c2277de2eda2c4d1b11ea5c5b1068a

Authored by Boaz Harrosh
1 parent 3a09b1be53

exofs: Remove superfluous dependency on buffer_head and writeback

exofs_releasepage && exofs_invalidatepage are never called.
Leave the WARN_ONs but remove any code. Remove the

cleanup other stale #includes.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>

Showing 2 changed files with 2 additions and 8 deletions Side-by-side Diff

... ... @@ -32,9 +32,6 @@
32 32 */
33 33  
34 34 #include <linux/slab.h>
35   -#include <linux/writeback.h>
36   -#include <linux/buffer_head.h>
37   -#include <scsi/scsi_device.h>
38 35  
39 36 #include "exofs.h"
40 37  
41 38  
42 39  
... ... @@ -759,15 +756,13 @@
759 756 {
760 757 EXOFS_DBGMSG("page 0x%lx\n", page->index);
761 758 WARN_ON(1);
762   - return try_to_free_buffers(page);
  759 + return 0;
763 760 }
764 761  
765 762 static void exofs_invalidatepage(struct page *page, unsigned long offset)
766 763 {
767   - EXOFS_DBGMSG("page_has_buffers=>%d\n", page_has_buffers(page));
  764 + EXOFS_DBGMSG("page 0x%lx offset 0x%lx\n", page->index, offset);
768 765 WARN_ON(1);
769   -
770   - block_invalidatepage(page, offset);
771 766 }
772 767  
773 768 const struct address_space_operations exofs_aops = {
... ... @@ -31,7 +31,6 @@
31 31 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32 32 */
33 33  
34   -#include <linux/smp_lock.h>
35 34 #include <linux/string.h>
36 35 #include <linux/parser.h>
37 36 #include <linux/vfs.h>