* [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK
@ 2009-05-05 9:30 Alexander Beregalov
2009-05-05 9:30 ` [PATCH 2/2] fs: define __sync_blockdev() when !BLOCK Alexander Beregalov
2009-05-06 16:07 ` [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK Al Viro
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Beregalov @ 2009-05-05 9:30 UTC (permalink / raw)
To: linux-next, linux-fsdevel, viro; +Cc: Alexander Beregalov
Fix this build error when CONFIG_BLOCK is not set:
fs/super.c: In function 'generic_shutdown_super':
fs/super.c:278: error: implicit declaration of function 'sync_filesystem'
sync_filesystem() is always built with or without BLOCK.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
include/linux/fs.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index dee9745..efc991a 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1943,7 +1943,6 @@ extern struct super_block *freeze_bdev(struct block_device *);
extern void emergency_thaw_all(void);
extern int thaw_bdev(struct block_device *bdev, struct super_block *sb);
extern int fsync_bdev(struct block_device *);
-extern int sync_filesystem(struct super_block *);
extern int fsync_no_super(struct block_device *);
#else
static inline void bd_forget(struct inode *inode) {}
@@ -1961,6 +1960,8 @@ static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb)
return 0;
}
#endif
+extern int sync_filesystem(struct super_block *);
+
extern const struct file_operations def_blk_fops;
extern const struct file_operations def_chr_fops;
extern const struct file_operations bad_sock_fops;
--
1.6.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] fs: define __sync_blockdev() when !BLOCK
2009-05-05 9:30 [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK Alexander Beregalov
@ 2009-05-05 9:30 ` Alexander Beregalov
2009-05-06 16:07 ` [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK Al Viro
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Beregalov @ 2009-05-05 9:30 UTC (permalink / raw)
To: linux-next, linux-fsdevel, viro; +Cc: Alexander Beregalov
Fix this build error when CONFIG_BLOCK is not set:
fs/sync.c: In function '__sync_filesystem':
fs/sync.c:40: error: implicit declaration of function '__sync_blockdev'
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
include/linux/fs.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index efc991a..4193cf0 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1947,6 +1947,10 @@ extern int fsync_no_super(struct block_device *);
#else
static inline void bd_forget(struct inode *inode) {}
static inline int sync_blockdev(struct block_device *bdev) { return 0; }
+static inline int __sync_blockdev(struct block_device *bdev, int wait)
+{
+ return 0;
+}
static inline void sync_blockdevs(void) { }
static inline void invalidate_bdev(struct block_device *bdev) {}
--
1.6.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK
2009-05-05 9:30 [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK Alexander Beregalov
2009-05-05 9:30 ` [PATCH 2/2] fs: define __sync_blockdev() when !BLOCK Alexander Beregalov
@ 2009-05-06 16:07 ` Al Viro
1 sibling, 0 replies; 3+ messages in thread
From: Al Viro @ 2009-05-06 16:07 UTC (permalink / raw)
To: Alexander Beregalov; +Cc: linux-next, linux-fsdevel
All 3 applied
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-06 16:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05 9:30 [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK Alexander Beregalov
2009-05-05 9:30 ` [PATCH 2/2] fs: define __sync_blockdev() when !BLOCK Alexander Beregalov
2009-05-06 16:07 ` [PATCH 1/2] fs: sync_filesystem() not depend on BLOCK Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).