summaryrefslogtreecommitdiffstats
path: root/fs/exofs/inode.c
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2010-05-31 18:55:43 +0300
committerBoaz Harrosh <bharrosh@panasas.com>2010-08-04 13:17:55 +0300
commit85dc7878c6c2277de2eda2c4d1b11ea5c5b1068a (patch)
treedde1a55f77069b824b796420b1510b2547118cd3 /fs/exofs/inode.c
parent3a09b1be53d23df780a0cd0e4087a05e2ca4a00c (diff)
downloadlinux-85dc7878c6c2277de2eda2c4d1b11ea5c5b1068a.tar.gz
linux-85dc7878c6c2277de2eda2c4d1b11ea5c5b1068a.tar.bz2
linux-85dc7878c6c2277de2eda2c4d1b11ea5c5b1068a.zip
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>
Diffstat (limited to 'fs/exofs/inode.c')
-rw-r--r--fs/exofs/inode.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c
index 4bb6ef822e46..fbf9f34554e0 100644
--- a/fs/exofs/inode.c
+++ b/fs/exofs/inode.c
@@ -32,9 +32,6 @@
*/
#include <linux/slab.h>
-#include <linux/writeback.h>
-#include <linux/buffer_head.h>
-#include <scsi/scsi_device.h>
#include "exofs.h"
@@ -759,15 +756,13 @@ static int exofs_releasepage(struct page *page, gfp_t gfp)
{
EXOFS_DBGMSG("page 0x%lx\n", page->index);
WARN_ON(1);
- return try_to_free_buffers(page);
+ return 0;
}
static void exofs_invalidatepage(struct page *page, unsigned long offset)
{
- EXOFS_DBGMSG("page_has_buffers=>%d\n", page_has_buffers(page));
+ EXOFS_DBGMSG("page 0x%lx offset 0x%lx\n", page->index, offset);
WARN_ON(1);
-
- block_invalidatepage(page, offset);
}
const struct address_space_operations exofs_aops = {