[PATCH] vfs: Provide empty fsync_bdev if !CONFIG_BLOCK

From: Jan Kara
Date: Mon Mar 01 2010 - 08:24:36 EST


Provide empty declaration of fsync_bdev when CONFIG_BLOCK is not defined so
that quota code can use it.

Signed-off-by: Jan Kara <jack@xxxxxxx>
---
include/linux/fs.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/fs.h b/include/linux/fs.h
index ebb1cd5..b9e4f1c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1961,6 +1961,11 @@ static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb)
{
return 0;
}
+
+static inline int fsync_bdev(struct block_device *bdev)
+{
+ return 0;
+}
#endif
extern int sync_filesystem(struct super_block *);
extern const struct file_operations def_blk_fops;
--
1.6.4.2

--
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/