diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-02 06:34:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-02 06:34:04 -0700 |
commit | faa7a4c05ace72d85bbfb8d2a458a80491f8045b (patch) | |
tree | 360c5cb33ba4e4c762d0052af0c0e856d592328a /fs | |
parent | 62054d49783cfe93c9cee9d90a0779f1f9054968 (diff) | |
parent | 9da9210dbc752cf35fa2fe866614a1d5b1266066 (diff) | |
download | history-faa7a4c05ace72d85bbfb8d2a458a80491f8045b.tar.gz |
Merge bk://linux-ntfs.bkbits.net/ntfs-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jbd/transaction.c | 3 | ||||
-rw-r--r-- | fs/proc/generic.c | 21 |
2 files changed, 16 insertions, 8 deletions
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index 149fac70deecbe..8f69595f9f0a24 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c @@ -320,7 +320,7 @@ int journal_extend(handle_t *handle, int nblocks) result = -EIO; if (is_handle_aborted(handle)) - goto error_out; + goto out; result = 1; @@ -357,6 +357,7 @@ unlock: spin_unlock(&transaction->t_handle_lock); error_out: spin_unlock(&journal->j_state_lock); +out: return result; } diff --git a/fs/proc/generic.c b/fs/proc/generic.c index b16a42d5f682be..72febc00fa3bf2 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -231,14 +231,21 @@ out: static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) { struct inode *inode = dentry->d_inode; - int error = inode_setattr(inode, iattr); - if (!error) { - struct proc_dir_entry *de = PDE(inode); - de->uid = inode->i_uid; - de->gid = inode->i_gid; - de->mode = inode->i_mode; - } + struct proc_dir_entry *de = PDE(inode); + int error; + + error = inode_change_ok(inode, iattr); + if (error) + goto out; + error = inode_setattr(inode, iattr); + if (error) + goto out; + + de->uid = inode->i_uid; + de->gid = inode->i_gid; + de->mode = inode->i_mode; +out: return error; } |