X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fsync.c;h=92b228176f7cb05f4be58aabcae02e6ffb0b832d;hb=09c4d6a7d40dd26c1b35674c582382b7ea551368;hp=fc5c3d75cf3c736a7255b2101d1169786753f634;hpb=9b030e2006546366c832911ca5eb9e785408795b;p=karo-tx-linux.git diff --git a/fs/sync.c b/fs/sync.c index fc5c3d75cf3c..92b228176f7c 100644 --- a/fs/sync.c +++ b/fs/sync.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "internal.h" #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 * write out data in the first place */ - if (!sb->s_bdi) + if (!sb->s_bdi || sb->s_bdi == &noop_backing_dev_info) return 0; if (sb->s_qcop && sb->s_qcop->quota_sync)