From: zab Date: Thu, 23 Jan 2003 19:09:31 +0000 (+0000) Subject: - add fs_sink filter method which blocks until the backing filter is synced. X-Git-Tag: v1_7_110~2^11~207 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3a8efcaf4df65beac15e2ad0c7c6ef7d951c3adb;p=fs%2Flustre-release.git - add fs_sink filter method which blocks until the backing filter is synced. ext* uses ext*_force_commit, reiser is unimplemented - add /proc/sys/lustre/filter_sync_on_commit tunable, disabled by default. when enabled it calls the filter sync after each filter_commitrw for write --- diff --git a/lustre/obdclass/fsfilt_reiserfs.c b/lustre/obdclass/fsfilt_reiserfs.c index 1ec5916..f8d4ac3 100644 --- a/lustre/obdclass/fsfilt_reiserfs.c +++ b/lustre/obdclass/fsfilt_reiserfs.c @@ -160,6 +160,12 @@ static int fsfilt_reiserfs_statfs(struct super_block *sb, struct obd_statfs *osf return rc; } +static int fsfilt_reiserfs_sync(struct super_block *sb) +{ + CERROR("not implemented yet\n"); + return -ENOSYS; +} + static struct fsfilt_operations fsfilt_reiserfs_ops = { fs_type: "reiserfs", fs_owner: THIS_MODULE, @@ -173,6 +179,7 @@ static struct fsfilt_operations fsfilt_reiserfs_ops = { fs_journal_data: fsfilt_reiserfs_journal_data, fs_set_last_rcvd: fsfilt_reiserfs_set_last_rcvd, fs_statfs: fsfilt_reiserfs_statfs, + fs_sync: fsfilt_reiserfs_sync, }; static int __init fsfilt_reiserfs_init(void)