Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fbaacf
)
- protect i_nlink from concurrent changing
author
alex
<alex>
Sat, 17 Sep 2005 22:48:46 +0000
(22:48 +0000)
committer
alex
<alex>
Sat, 17 Sep 2005 22:48:46 +0000
(22:48 +0000)
lustre/smfs/dir.c
patch
|
blob
|
history
diff --git
a/lustre/smfs/dir.c
b/lustre/smfs/dir.c
index
cc1fa3a
..
42724c6
100644
(file)
--- a/
lustre/smfs/dir.c
+++ b/
lustre/smfs/dir.c
@@
-656,7
+656,9
@@
static int smfs_rmdir(struct inode *dir, struct dentry *dentry)
CWARN("Directory #%lu under rmdir has %i nlinks\n",
inode->i_ino, inode->i_nlink);
inode->i_nlink = 0;
+ lock_kernel();
dir->i_nlink--;
+ unlock_kernel();
post_smfs_inode(dir, cache_dir);
post_smfs_inode(inode, cache_inode);
//like vfs_rmdir is doing with inode