diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-30 17:38:25 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 17:46:47 -0500 |
| commit | d3f8cf489993658702b7e58ff37162246263de53 (patch) | |
| tree | 268db74a65b90335fb3457357e46e732696cfbb0 | |
| parent | 08db2a701bd63d0e36f06a29137bf016a907cf71 (diff) | |
[PATCH] NFS: Remove unbalanced spin_unlock() calls from nfs_refresh_inode()
Doh!
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index f2781ca42761..fc0f12ba89cc 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
| @@ -1274,14 +1274,12 @@ static int nfs_check_inode_attributes(struct inode *inode, struct nfs_fattr *fat | |||
| 1274 | } | 1274 | } |
| 1275 | 1275 | ||
| 1276 | if ((fattr->valid & NFS_ATTR_FATTR) == 0) { | 1276 | if ((fattr->valid & NFS_ATTR_FATTR) == 0) { |
| 1277 | spin_unlock(&inode->i_lock); | ||
| 1278 | return 0; | 1277 | return 0; |
| 1279 | } | 1278 | } |
| 1280 | 1279 | ||
| 1281 | /* Has the inode gone and changed behind our back? */ | 1280 | /* Has the inode gone and changed behind our back? */ |
| 1282 | if (nfsi->fileid != fattr->fileid | 1281 | if (nfsi->fileid != fattr->fileid |
| 1283 | || (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { | 1282 | || (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { |
| 1284 | spin_unlock(&inode->i_lock); | ||
| 1285 | return -EIO; | 1283 | return -EIO; |
| 1286 | } | 1284 | } |
| 1287 | 1285 | ||
