lkml.org 
[lkml]   [2007]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 19/22] export sync_sb() to modules
From: Miklos Szeredi <mszeredi@suse.cz>

Create a function sync_sb() and export it to modules. This is the
generic interface for writing back dirty data from a single
superblock.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
---

Index: linux/fs/fs-writeback.c
===================================================================
--- linux.orig/fs/fs-writeback.c 2007-02-27 14:40:54.000000000 +0100
+++ linux/fs/fs-writeback.c 2007-02-27 14:41:12.000000000 +0100
@@ -400,6 +400,14 @@ sync_sb_inodes(struct super_block *sb, s
return; /* Leave any unwritten inodes on s_io */
}

+void sync_sb(struct super_block *sb, struct writeback_control *wbc)
+{
+ spin_lock(&inode_lock);
+ sync_sb_inodes(sb, wbc);
+ spin_unlock(&inode_lock);
+}
+EXPORT_SYMBOL(sync_sb);
+
/*
* Start writeback of dirty pagecache data against all unlocked inodes.
*
Index: linux/include/linux/fs.h
===================================================================
--- linux.orig/include/linux/fs.h 2007-02-27 14:41:09.000000000 +0100
+++ linux/include/linux/fs.h 2007-02-27 14:41:12.000000000 +0100
@@ -1240,6 +1240,7 @@ static inline void file_accessed(struct
}

int sync_inode(struct inode *inode, struct writeback_control *wbc);
+void sync_sb(struct super_block *sb, struct writeback_control *wbc);

/**
* struct export_operations - for nfsd to communicate with file systems
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-02-28 00:25    [W:0.114 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site