Re: [PATCH 1/5] vfs: Make sync(1) writeout also block device inodes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -static int __sync_filesystem(struct super_block *sb, int wait)
> +static void __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 == &noop_backing_dev_info)
> -		return 0;
> -

Moving this check is not related to the block device writeback, is it?
Furthermore it gets moved deeper into the stack later on anyway, so it
gets reverted.

I think the series would be much cleaner if this patch gets moved
towards the end of it.

> +static void sync_all_bdevs(int wait)
> +{

This function should at least have a comment explaining why we need it.

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux