Ryusuke Konishi
7823f8d630
nilfs2: fix sync silent failure
...
commit 973bec34bf upstream.
As of 32a88aa1 , __sync_filesystem() will return 0 if s_bdi is not set.
And nilfs does not set s_bdi anywhere. I noticed this problem by the
warning introduced by the recent commit 5129a469 ("Catch filesystem
lacking s_bdi").
WARNING: at fs/super.c:959 vfs_kern_mount+0xc5/0x14e()
Hardware name: PowerEdge 2850
Modules linked in: nilfs2 loop tpm_tis tpm tpm_bios video shpchp pci_hotplug output dcdbas
Pid: 3773, comm: mount.nilfs2 Not tainted 2.6.34-rc6-debug #38
Call Trace:
[<c1028422>] warn_slowpath_common+0x60/0x90
[<c102845f>] warn_slowpath_null+0xd/0x10
[<c1095936>] vfs_kern_mount+0xc5/0x14e
[<c1095a03>] do_kern_mount+0x32/0xbd
[<c10a811e>] do_mount+0x671/0x6d0
[<c1073794>] ? __get_free_pages+0x1f/0x21
[<c10a684f>] ? copy_mount_options+0x2b/0xe2
[<c107b634>] ? strndup_user+0x48/0x67
[<c10a81de>] sys_mount+0x61/0x8f
[<c100280c>] sysenter_do_call+0x12/0x32
This ensures to set s_bdi for nilfs and fixes the sync silent failure.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp >
Acked-by: Jens Axboe <jens.axboe@oracle.com >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2010-05-26 14:29:21 -07:00
..
2010-04-26 07:41:29 -07:00
2009-09-24 07:21:05 -07:00
2010-02-09 04:50:48 -08:00
2009-11-19 18:11:35 +00:00
2009-09-21 15:14:58 +02:00
2009-08-31 17:44:05 -10:00
2010-02-23 07:37:55 -08:00
2010-02-09 04:50:46 -08:00
2010-05-26 14:29:18 -07:00
2010-05-26 14:29:20 -07:00
2010-05-26 14:29:16 -07:00
2009-10-04 15:05:10 -07:00
2009-09-11 09:20:26 +02:00
2009-04-02 19:05:08 -07:00
2009-12-18 14:04:16 -08:00
2009-12-18 14:04:15 -08:00
2009-09-30 12:19:44 -05:00
2010-04-26 07:41:33 -07:00
2009-06-17 00:36:36 -04:00
2010-01-18 10:19:15 -08:00
2008-12-25 11:40:09 +11:00
2009-09-24 07:53:22 -07:00
2010-04-26 07:41:21 -07:00
2010-05-12 14:57:10 -07:00
2010-04-26 07:41:13 -07:00
2009-07-12 12:22:34 -07:00
2009-11-20 21:50:44 +00:00
2010-02-09 04:50:59 -08:00
2010-04-01 15:58:57 -07:00
2009-12-18 14:04:08 -08:00
2009-10-29 07:39:27 -07:00
2009-06-30 18:56:03 -07:00
2009-07-12 12:22:34 -07:00
2009-04-02 19:04:53 -07:00
2009-09-24 08:32:11 -07:00
2009-09-24 07:47:42 -04:00
2009-11-12 10:24:12 +01:00
2009-12-18 14:03:56 -08:00
2009-12-18 14:05:52 -08:00
2010-05-12 14:57:11 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 07:39:57 -07:00
2009-09-27 11:39:25 -07:00
2010-05-12 14:57:04 -07:00
2008-12-23 15:21:32 -05:00
2010-05-12 14:57:01 -07:00
2010-05-26 14:29:21 -07:00
2009-09-30 09:31:14 -07:00
2010-05-26 14:29:17 -07:00
2009-09-24 08:32:11 -07:00
2010-05-12 14:57:04 -07:00
2009-10-01 16:11:11 -07:00
2009-01-05 11:54:28 -05:00
2010-04-01 15:58:44 -07:00
2010-05-26 14:29:19 -07:00
2009-09-23 07:39:30 -07:00
2010-04-26 07:41:29 -07:00
2009-09-24 08:41:47 -04:00
2010-05-12 14:57:01 -07:00
2010-02-09 04:50:47 -08:00
2009-09-24 07:47:42 -04:00
2009-09-22 07:17:24 -07:00
2010-02-23 07:37:56 -08:00
2009-06-17 00:36:37 -04:00
2009-09-27 11:39:25 -07:00
2010-01-06 15:05:00 -08:00
2009-06-18 13:03:46 -07:00
2010-05-12 14:57:13 -07:00
2009-09-23 07:39:29 -07:00
2009-10-04 15:05:10 -07:00
2009-09-24 08:41:47 -04:00
2008-12-31 18:07:43 -05:00
2010-02-09 04:50:49 -08:00
2010-02-09 04:50:49 -08:00
2010-02-09 04:50:49 -08:00
2008-10-16 11:21:38 -07:00
2010-02-09 04:50:49 -08:00
2009-01-06 15:59:19 -08:00
2008-10-16 11:21:38 -07:00
2010-02-09 04:50:49 -08:00
2010-02-09 04:50:58 -08:00
2010-02-09 04:50:58 -08:00
2010-04-26 07:41:19 -07:00
2009-09-25 09:27:30 -07:00
2009-09-24 07:21:03 -07:00
2009-11-12 07:25:57 -08:00
2010-05-26 14:29:19 -07:00
2009-07-18 15:51:44 +02:00
2009-01-14 14:15:18 +01:00
2009-05-22 23:22:54 +02:00
2009-09-24 07:21:04 -07:00
2009-09-23 07:39:29 -07:00
2009-06-18 13:03:41 -07:00
2010-05-26 14:29:19 -07:00
2010-02-23 07:37:44 -08:00
2008-10-21 07:47:06 -04:00
2010-03-15 08:49:37 -07:00
2009-10-11 11:20:58 -07:00
2009-04-20 23:02:52 -04:00
2009-03-31 23:00:27 -04:00
2010-04-26 07:41:36 -07:00
2009-03-31 23:00:26 -04:00
2009-09-24 07:47:27 -04:00
2009-09-24 08:40:15 -04:00
2009-11-12 07:26:01 -08:00
2009-01-14 14:15:30 +01:00
2009-10-30 15:03:54 +11:00
2009-01-09 16:54:41 -08:00
2009-09-24 07:47:30 -04:00
2009-09-22 07:17:25 -07:00
2009-04-07 08:31:16 -07:00
2009-05-13 15:13:42 -04:00
2010-03-15 08:49:32 -07:00
2009-09-24 08:40:15 -04:00
2009-01-14 14:15:29 +01:00
2009-09-23 09:21:05 -07:00
2009-10-22 08:11:44 +09:00
2008-11-14 10:39:05 +11:00
2009-09-24 07:47:34 -04:00
2009-01-14 14:15:31 +01:00
2009-10-04 15:05:10 -07:00
2009-09-24 07:47:35 -04:00
2009-01-14 14:15:31 +01:00
2009-09-14 17:55:15 -07:00
2010-01-06 15:05:01 -08:00
2010-01-28 15:00:47 -08:00
2009-09-23 07:39:29 -07:00
2009-02-18 15:37:53 -08:00
2009-01-14 14:15:30 +01:00
2009-09-10 10:11:22 +10:00