aboutsummaryrefslogtreecommitdiffstats
path: root/fs/attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/attr.c')
-rw-r--r--fs/attr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/attr.c b/fs/attr.c
index b4fa3b0aa596..1f6a895e24e9 100644
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -105,13 +105,13 @@ out_big:
105EXPORT_SYMBOL(inode_newsize_ok); 105EXPORT_SYMBOL(inode_newsize_ok);
106 106
107/** 107/**
108 * generic_setattr - copy simple metadata updates into the generic inode 108 * setattr_copy - copy simple metadata updates into the generic inode
109 * @inode: the inode to be updated 109 * @inode: the inode to be updated
110 * @attr: the new attributes 110 * @attr: the new attributes
111 * 111 *
112 * generic_setattr must be called with i_mutex held. 112 * setattr_copy must be called with i_mutex held.
113 * 113 *
114 * generic_setattr updates the inode's metadata with that specified 114 * setattr_copy updates the inode's metadata with that specified
115 * in attr. Noticably missing is inode size update, which is more complex 115 * in attr. Noticably missing is inode size update, which is more complex
116 * as it requires pagecache updates. See simple_setsize. 116 * as it requires pagecache updates. See simple_setsize.
117 * 117 *
@@ -119,7 +119,7 @@ EXPORT_SYMBOL(inode_newsize_ok);
119 * that for "simple" filesystems, the struct inode is the inode storage. 119 * that for "simple" filesystems, the struct inode is the inode storage.
120 * The caller is free to mark the inode dirty afterwards if needed. 120 * The caller is free to mark the inode dirty afterwards if needed.
121 */ 121 */
122void generic_setattr(struct inode *inode, const struct iattr *attr) 122void setattr_copy(struct inode *inode, const struct iattr *attr)
123{ 123{
124 unsigned int ia_valid = attr->ia_valid; 124 unsigned int ia_valid = attr->ia_valid;
125 125
@@ -144,11 +144,11 @@ void generic_setattr(struct inode *inode, const struct iattr *attr)
144 inode->i_mode = mode; 144 inode->i_mode = mode;
145 } 145 }
146} 146}
147EXPORT_SYMBOL(generic_setattr); 147EXPORT_SYMBOL(setattr_copy);
148 148
149/* 149/*
150 * note this function is deprecated, the new truncate sequence should be 150 * note this function is deprecated, the new truncate sequence should be
151 * used instead -- see eg. simple_setsize, generic_setattr. 151 * used instead -- see eg. simple_setsize, setattr_copy.
152 */ 152 */
153int inode_setattr(struct inode *inode, const struct iattr *attr) 153int inode_setattr(struct inode *inode, const struct iattr *attr)
154{ 154{
@@ -163,7 +163,7 @@ int inode_setattr(struct inode *inode, const struct iattr *attr)
163 return error; 163 return error;
164 } 164 }
165 165
166 generic_setattr(inode, attr); 166 setattr_copy(inode, attr);
167 167
168 mark_inode_dirty(inode); 168 mark_inode_dirty(inode);
169 169