|
@@ -554,7 +554,7 @@ reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
|
|
|
if (!err && new_size < i_size_read(dentry->d_inode)) {
|
|
if (!err && new_size < i_size_read(dentry->d_inode)) {
|
|
|
struct iattr newattrs = {
|
|
struct iattr newattrs = {
|
|
|
.ia_ctime = current_fs_time(inode->i_sb),
|
|
.ia_ctime = current_fs_time(inode->i_sb),
|
|
|
- .ia_size = buffer_size,
|
|
|
|
|
|
|
+ .ia_size = new_size,
|
|
|
.ia_valid = ATTR_SIZE | ATTR_CTIME,
|
|
.ia_valid = ATTR_SIZE | ATTR_CTIME,
|
|
|
};
|
|
};
|
|
|
|
|
|