[linux-yocto] [linux-yocto 4.1] fs/yaffs2: adjust to the change of inode_change_ok()
Bruce Ashfield
bruce.ashfield at windriver.com
Sun Jan 29 19:58:23 PST 2017
On 2017-01-26 12:50 AM, Kevin Hao wrote:
> In commit cb8e1eef351b ("fs: Give dentry to inode_change_ok() instead
> of inode") the inode_change_ok() has been rename to setattr_prepare(),
> and one of the argument was also changed from inode to dentry. We
> adjust the invocation of inode_change_ok() in Yaffs2 according to
> this change.
merged.
Bruce
>
> Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
> ---
> fs/yaffs2/yaffs_vfs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
> index 16251d5dcb17..cbdea23493bb 100644
> --- a/fs/yaffs2/yaffs_vfs.c
> +++ b/fs/yaffs2/yaffs_vfs.c
> @@ -885,7 +885,7 @@ static int yaffs_setattr(struct dentry *dentry, struct iattr *attr)
> #endif
>
> if (error == 0)
> - error = inode_change_ok(inode, attr);
> + error = setattr_prepare(dentry, attr);
> if (error == 0) {
> int result;
> if (!error) {
>
More information about the linux-yocto
mailing list