Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / nfsd_iallocsem.patch
1 ===== fs/nfsd/vfs.c 1.20 vs edited =====
2 --- 1.20/fs/nfsd/vfs.c  2005-02-08 16:35:28 +02:00
3 +++ edited/fs/nfsd/vfs.c        2005-05-29 00:46:44 +03:00
4 @@ -297,6 +297,7 @@
5         iap->ia_valid |= ATTR_CTIME;
6  
7         if (iap->ia_valid & ATTR_SIZE) {
8 +               down_write(&inode->i_alloc_sem);
9                 fh_lock(fhp);
10                 size_change = 1;
11         }
12 @@ -307,6 +308,7 @@
13         }
14         if (size_change) {
15                 fh_unlock(fhp);
16 +               up_write(&inode->i_alloc_sem);
17                 put_write_access(inode);
18         }
19         if (!err)