diff --git a/fs/sharefs/inode.c b/fs/sharefs/inode.c index 23d8530e8595d7ab32bd1b8a506c55845d4ea767..4d6c3c3aa60748b91c57d0f51b0611e0ebbf5979 100644 --- a/fs/sharefs/inode.c +++ b/fs/sharefs/inode.c @@ -308,6 +308,7 @@ static int sharefs_rename(struct inode *old_dir, struct dentry *old_dentry, sharefs_put_lower_path(new_dentry, &lower_new_path); return err; } +#endif static int sharefs_setattr(struct dentry *dentry, struct iattr *ia) { @@ -388,7 +389,6 @@ static int sharefs_setattr(struct dentry *dentry, struct iattr *ia) out_err: return err; } -#endif const struct inode_operations sharefs_symlink_iops = { .permission = sharefs_permission, @@ -408,15 +408,13 @@ const struct inode_operations sharefs_dir_iops = { .rename = sharefs_rename, .create = sharefs_create, .mkdir = sharefs_mkdir, - .setattr = sharefs_setattr, #endif + .setattr = sharefs_setattr, }; const struct inode_operations sharefs_main_iops = { .permission = sharefs_permission, .getattr = sharefs_getattr, .listxattr = sharefs_listxattr, -#ifdef CONFIG_SHAREFS_SUPPORT_WRITE .setattr = sharefs_setattr, -#endif };