Re: [PATCH 2/2] pass writeback_control to ->write_inode

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

 



On 01/11/2010 07:31 PM, Christoph Hellwig wrote:
<snip>
> Index: linux-2.6/fs/exofs/exofs.h
> ===================================================================
> --- linux-2.6.orig/fs/exofs/exofs.h	2010-01-11 15:53:03.000000000 +0100
> +++ linux-2.6/fs/exofs/exofs.h	2010-01-11 16:12:12.278005468 +0100
> @@ -226,7 +226,7 @@ int exofs_write_begin(struct file *file,
>  		struct page **pagep, void **fsdata);
>  extern struct inode *exofs_iget(struct super_block *, unsigned long);
>  struct inode *exofs_new_inode(struct inode *, int);
> -extern int exofs_write_inode(struct inode *, int);
> +extern int exofs_write_inode(struct inode *, struct writeback_control *wbc);
>  extern void exofs_delete_inode(struct inode *);
>  
>  /* dir.c:                */
> Index: linux-2.6/fs/exofs/inode.c
> ===================================================================
> --- linux-2.6.orig/fs/exofs/inode.c	2010-01-11 15:53:03.000000000 +0100
> +++ linux-2.6/fs/exofs/inode.c	2010-01-11 16:12:12.280004047 +0100
> @@ -1238,9 +1238,9 @@ out:
>  	return ret;
>  }
>  
> -int exofs_write_inode(struct inode *inode, int wait)
> +int exofs_write_inode(struct inode *inode, struct writeback_control *wbc)
>  {
> -	return exofs_update_inode(inode, wait);
> +	return exofs_update_inode(inode, wbc->sync_mode == WB_SYNC_ALL);
>  }
>  
>  /*
<snip>

ACK-by: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
--
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