diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-11-15 18:24:17 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-06 20:43:26 -0500 |
commit | 9cdce3c074fbd7083923f15225e112a91daff8ed (patch) | |
tree | f1c4e23622a46b610f1f710c7c248b73ee7269b3 /fs/ufs/namei.c | |
parent | c73119c58fef2590e0a2bef959a12cff7a07874b (diff) | |
download | op-kernel-dev-9cdce3c074fbd7083923f15225e112a91daff8ed.zip op-kernel-dev-9cdce3c074fbd7083923f15225e112a91daff8ed.tar.gz |
ufs: get rid of ->setattr() for symlinks
It was to needed for a couple of months in 2010, until UFS
quota support got dropped. Since then it's equivalent to
simple_setattr() (i.e. the default) for everything except the
regular files. And dropping it there allows to convert all
UFS symlinks to {page,simple}_symlink_inode_operations, getting
rid of fs/ufs/symlink.c completely.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/namei.c')
-rw-r--r-- | fs/ufs/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index 4796655..24b0cbd 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c @@ -123,14 +123,14 @@ static int ufs_symlink (struct inode * dir, struct dentry * dentry, if (l > UFS_SB(sb)->s_uspi->s_maxsymlinklen) { /* slow symlink */ - inode->i_op = &ufs_symlink_inode_operations; + inode->i_op = &page_symlink_inode_operations; inode->i_mapping->a_ops = &ufs_aops; err = page_symlink(inode, symname, l); if (err) goto out_fail; } else { /* fast symlink */ - inode->i_op = &ufs_fast_symlink_inode_operations; + inode->i_op = &simple_symlink_inode_operations; inode->i_link = (char *)UFS_I(inode)->i_u1.i_symlink; memcpy(inode->i_link, symname, l); inode->i_size = l-1; |