|
@@ -14,6 +14,7 @@
|
|
#include <linux/pagemap.h>
|
|
#include <linux/pagemap.h>
|
|
#include <linux/quotaops.h>
|
|
#include <linux/quotaops.h>
|
|
#include <linux/buffer_head.h>
|
|
#include <linux/buffer_head.h>
|
|
|
|
+#include <linux/backing-dev.h>
|
|
#include "internal.h"
|
|
#include "internal.h"
|
|
|
|
|
|
#define VALID_FLAGS (SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE| \
|
|
#define VALID_FLAGS (SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE| \
|
|
@@ -32,7 +33,7 @@ static int __sync_filesystem(struct super_block *sb, int wait)
|
|
* This should be safe, as we require bdi backing to actually
|
|
* This should be safe, as we require bdi backing to actually
|
|
* write out data in the first place
|
|
* write out data in the first place
|
|
*/
|
|
*/
|
|
- if (!sb->s_bdi)
|
|
|
|
|
|
+ if (!sb->s_bdi || sb->s_bdi == &noop_backing_dev_info)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
if (sb->s_qcop && sb->s_qcop->quota_sync)
|
|
if (sb->s_qcop && sb->s_qcop->quota_sync)
|