linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Dmitry Monakhov <dmonakhov@openvz.org>
Cc: linux-fsdevel@vger.kernel.org, jack@suse.cz
Subject: Re: [PATCH] udf: add speciffic ->setattr callback
Date: Mon, 29 Mar 2010 16:51:23 +0200	[thread overview]
Message-ID: <20100329145122.GD5835@quack.suse.cz> (raw)
In-Reply-To: <1269846321-5530-1-git-send-email-dmonakhov@openvz.org>

On Mon 29-03-10 11:05:21, Dmitry Monakhov wrote:
> generic setattr not longer responsible for quota transfer.
> use udf_setattr for all udf's inodes.
  Thanks. Merged.

								Honza

> 
> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
> ---
>  fs/udf/file.c    |    2 +-
>  fs/udf/inode.c   |    2 +-
>  fs/udf/namei.c   |    9 ++++++++-
>  fs/udf/udfdecl.h |    3 ++-
>  4 files changed, 12 insertions(+), 4 deletions(-)
> 
> diff --git a/fs/udf/file.c b/fs/udf/file.c
> index 1eb0677..4b6a46c 100644
> --- a/fs/udf/file.c
> +++ b/fs/udf/file.c
> @@ -218,7 +218,7 @@ const struct file_operations udf_file_operations = {
>  	.llseek			= generic_file_llseek,
>  };
>  
> -static int udf_setattr(struct dentry *dentry, struct iattr *iattr)
> +int udf_setattr(struct dentry *dentry, struct iattr *iattr)
>  {
>  	struct inode *inode = dentry->d_inode;
>  	int error;
> diff --git a/fs/udf/inode.c b/fs/udf/inode.c
> index c7da1a3..7d60558 100644
> --- a/fs/udf/inode.c
> +++ b/fs/udf/inode.c
> @@ -1314,7 +1314,7 @@ static void udf_fill_inode(struct inode *inode, struct buffer_head *bh)
>  		break;
>  	case ICBTAG_FILE_TYPE_SYMLINK:
>  		inode->i_data.a_ops = &udf_symlink_aops;
> -		inode->i_op = &page_symlink_inode_operations;
> +		inode->i_op = &udf_symlink_inode_operations;
>  		inode->i_mode = S_IFLNK | S_IRWXUGO;
>  		break;
>  	case ICBTAG_FILE_TYPE_MAIN:
> diff --git a/fs/udf/namei.c b/fs/udf/namei.c
> index 96757e3..1fdbee2 100644
> --- a/fs/udf/namei.c
> +++ b/fs/udf/namei.c
> @@ -925,7 +925,7 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
>  	iinfo = UDF_I(inode);
>  	inode->i_mode = S_IFLNK | S_IRWXUGO;
>  	inode->i_data.a_ops = &udf_symlink_aops;
> -	inode->i_op = &page_symlink_inode_operations;
> +	inode->i_op = &udf_symlink_inode_operations;
>  
>  	if (iinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) {
>  		struct kernel_lb_addr eloc;
> @@ -1393,6 +1393,7 @@ const struct export_operations udf_export_ops = {
>  const struct inode_operations udf_dir_inode_operations = {
>  	.lookup				= udf_lookup,
>  	.create				= udf_create,
> +	.setattr			= udf_setattr,
>  	.link				= udf_link,
>  	.unlink				= udf_unlink,
>  	.symlink			= udf_symlink,
> @@ -1401,3 +1402,9 @@ const struct inode_operations udf_dir_inode_operations = {
>  	.mknod				= udf_mknod,
>  	.rename				= udf_rename,
>  };
> +const struct inode_operations udf_symlink_inode_operations = {
> +	.readlink	= generic_readlink,
> +	.follow_link	= page_follow_link_light,
> +	.put_link	= page_put_link,
> +	.setattr	= udf_setattr,
> +};
> diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
> index 8d46f42..0592020 100644
> --- a/fs/udf/udfdecl.h
> +++ b/fs/udf/udfdecl.h
> @@ -76,6 +76,7 @@ extern const struct inode_operations udf_dir_inode_operations;
>  extern const struct file_operations udf_dir_operations;
>  extern const struct inode_operations udf_file_inode_operations;
>  extern const struct file_operations udf_file_operations;
> +extern const struct inode_operations udf_symlink_inode_operations;
>  extern const struct address_space_operations udf_aops;
>  extern const struct address_space_operations udf_adinicb_aops;
>  extern const struct address_space_operations udf_symlink_aops;
> @@ -131,7 +132,7 @@ extern int udf_write_fi(struct inode *inode, struct fileIdentDesc *,
>  /* file.c */
>  extern int udf_ioctl(struct inode *, struct file *, unsigned int,
>  		     unsigned long);
> -
> +extern int udf_setattr(struct dentry *dentry, struct iattr *iattr);
>  /* inode.c */
>  extern struct inode *udf_iget(struct super_block *, struct kernel_lb_addr *);
>  extern int udf_sync_inode(struct inode *);
> -- 
> 1.6.6.1
> 
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

      reply	other threads:[~2010-03-29 15:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29  7:05 [PATCH] udf: add speciffic ->setattr callback Dmitry Monakhov
2010-03-29 14:51 ` Jan Kara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100329145122.GD5835@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=dmonakhov@openvz.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).