Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178907
b: refs/heads/master
c: 5fe1533
h: refs/heads/master
i:
  178905: 3d6bc57
  178903: 31be217
v: v3
  • Loading branch information
Frederic Weisbecker committed Jan 5, 2010
1 parent 0bc57b8 commit 8ea4953
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3e22f48f37c1e14441c9f72ca8e63b1d4516745
refs/heads/master: 5fe1533fda8ae005541bd418a7a8bc4fa0cda522
8 changes: 5 additions & 3 deletions trunk/fs/reiserfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3052,13 +3052,14 @@ static ssize_t reiserfs_direct_IO(int rw, struct kiocb *iocb,
int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;
unsigned int ia_valid;
int depth;
int error;

/* must be turned off for recursive notify_change calls */
ia_valid = attr->ia_valid &= ~(ATTR_KILL_SUID|ATTR_KILL_SGID);

reiserfs_write_lock(inode->i_sb);
depth = reiserfs_write_lock_once(inode->i_sb);
if (attr->ia_valid & ATTR_SIZE) {
/* version 2 items will be caught by the s_maxbytes check
** done for us in vmtruncate
Expand Down Expand Up @@ -3149,7 +3150,8 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
}

out:
reiserfs_write_unlock(inode->i_sb);
reiserfs_write_unlock_once(inode->i_sb, depth);

return error;
}

Expand Down

0 comments on commit 8ea4953

Please sign in to comment.