* [PATCH -mm] freeze/thaw fs when BLOCK=n
@ 2006-11-17 5:36 Randy Dunlap
2006-11-17 15:18 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2006-11-17 5:36 UTC (permalink / raw)
To: lkml; +Cc: pavel, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix freeze/thaw filesystems with CONFIG_BLOCK disabled:
kernel/power/process.c:124: warning: implicit declaration of function 'freeze_fil
esystems'
kernel/power/process.c:189: warning: implicit declaration of function 'thaw_files
ystems'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
include/linux/buffer_head.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-2619-rc5mm2.orig/include/linux/buffer_head.h
+++ linux-2619-rc5mm2/include/linux/buffer_head.h
@@ -314,7 +314,8 @@ static inline void invalidate_inode_buff
static inline int remove_inode_buffers(struct inode *inode) { return 1; }
static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; }
static inline void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers) {}
-
+static inline void freeze_filesystems(void) {}
+static inline void thaw_filesystems(void) {}
#endif /* CONFIG_BLOCK */
#endif /* _LINUX_BUFFER_HEAD_H */
---
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -mm] freeze/thaw fs when BLOCK=n
2006-11-17 5:36 [PATCH -mm] freeze/thaw fs when BLOCK=n Randy Dunlap
@ 2006-11-17 15:18 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2006-11-17 15:18 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, akpm, Rafael J. Wysocki
Hi!
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix freeze/thaw filesystems with CONFIG_BLOCK disabled:
> kernel/power/process.c:124: warning: implicit declaration of function 'freeze_fil
> esystems'
> kernel/power/process.c:189: warning: implicit declaration of function 'thaw_files
> ystems'
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
I believe we'll simply want to remove {thaw,freeze}_filesystems. XFS
problem is solved with freezeable workqueues, and
{thaw,freeze}_filesystems has problems if someone is creating dm
snapshots in the meantime.
Pavel
> ---
> include/linux/buffer_head.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- linux-2619-rc5mm2.orig/include/linux/buffer_head.h
> +++ linux-2619-rc5mm2/include/linux/buffer_head.h
> @@ -314,7 +314,8 @@ static inline void invalidate_inode_buff
> static inline int remove_inode_buffers(struct inode *inode) { return 1; }
> static inline int sync_mapping_buffers(struct address_space *mapping) { return 0; }
> static inline void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers) {}
> -
> +static inline void freeze_filesystems(void) {}
> +static inline void thaw_filesystems(void) {}
>
> #endif /* CONFIG_BLOCK */
> #endif /* _LINUX_BUFFER_HEAD_H */
>
>
> ---
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-17 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-17 5:36 [PATCH -mm] freeze/thaw fs when BLOCK=n Randy Dunlap
2006-11-17 15:18 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®